--- a/dav/utils.h Thu Aug 22 14:27:58 2013 +0200 +++ b/dav/utils.h Fri Aug 23 11:04:07 2013 +0200 @@ -32,6 +32,18 @@ #include <sys/types.h> #include <libxml/tree.h> #include <ucx/string.h> +#include <sys/stat.h> +#ifdef _WIN32 +#include <io.h> +#define S_IRWXG 070 +#define S_IRGRP 040 +#define S_IWGRP 020 +#define S_IXGRP 010 +#define S_IRWXO 07 +#define S_IROTH 04 +#define S_IWOTH 02 +#define S_IXOTH 01 +#endif /* _WIN32 */ #ifdef __cplusplus extern "C" { @@ -40,6 +52,8 @@ time_t util_parse_creationdate(char *str); time_t util_parse_lastmodified(char *str); +int util_mkdir(char *path, mode_t mode); + char* util_url_path(char *url); char* util_resource_name(char *url); char* util_concat_path(char *url_base, char *path);