aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver/httpd-utils.h
blob: af4c57c3dd2081691c5965a0bfc3f7e443934619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * blogc: A blog compiler.
 * Copyright (C) 2015-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br>
 *
 * This program can be distributed under the terms of the BSD License.
 * See the file LICENSE.
 */

#ifndef _HTTPD_UTILS_H
#define _HTTPD_UTILS_H

#define READLINE_BUFFER_SIZE 256

char* br_readline(int socket);
int br_hextoi(const char c);
char* br_urldecode(const char *str);
const char* br_get_extension(const char *filename);

#endif /* _HTTPD_UTILS_H */