util.h 512 Bytes
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
1 2 3
#ifndef __UTIL_H__
#define __UTIL_H__

4 5 6
#define XSLT_CONTENT 1
#define HTML_CONTENT 2

7
int util_timed_wait_for_fd(int fd, int timeout);
Jack Moffitt's avatar
Jack Moffitt committed
8
int util_read_header(int sock, char *buff, unsigned long len);
9
int util_check_valid_extension(char *uri);
10
char *util_get_extension(char *path);
11
char *util_get_path_from_uri(char *uri);
12 13
char *util_get_path_from_normalised_uri(char *uri);
char *util_normalise_uri(char *uri);
14 15
char *util_base64_encode(char *data);
char *util_base64_decode(char *input);
Jack Moffitt's avatar
Jack Moffitt committed
16 17

#endif  /* __UTIL_H__ */