28 |
28 |
29 #ifndef UTILS_H |
29 #ifndef UTILS_H |
30 #define UTILS_H |
30 #define UTILS_H |
31 |
31 |
32 #include <sys/types.h> |
32 #include <sys/types.h> |
|
33 #include <libxml/tree.h> |
33 |
34 |
34 #ifdef __cplusplus |
35 #ifdef __cplusplus |
35 extern "C" { |
36 extern "C" { |
36 #endif |
37 #endif |
37 |
38 |
38 time_t parse_creationdate(char *str); |
39 time_t util_parse_creationdate(char *str); |
39 time_t parse_lastmodified(char *str); |
40 time_t util_parse_lastmodified(char *str); |
40 |
41 |
41 char* util_url_path(char *url); |
42 char* util_url_path(char *url); |
|
43 char* util_resource_name(char *url); |
|
44 char* util_concat_path(char *url_base, char *path); |
42 |
45 |
43 char* util_resource_name(char *url); |
46 int util_getboolean(char *v); |
44 |
47 |
45 char* util_child_url(char *url, char *href); |
48 char* util_xml_get_text(xmlNode *elm); |
46 |
|
47 char* util_upload_url(char *url, char *filepath); |
|
48 |
49 |
49 #ifdef __cplusplus |
50 #ifdef __cplusplus |
50 } |
51 } |
51 #endif |
52 #endif |
52 |
53 |