47 char **names; |
47 char **names; |
48 sstr_t *values; |
48 sstr_t *values; |
49 char *hash; |
49 char *hash; |
50 } XAttributes; |
50 } XAttributes; |
51 |
51 |
52 uint32_t parse_finfo(const char *str, char **unknown); |
52 typedef struct FileInfo { |
|
53 time_t last_modified; |
|
54 mode_t mode; |
|
55 uid_t uid; |
|
56 gid_t gid; |
|
57 DavBool date_set; |
|
58 DavBool mode_set; |
|
59 DavBool uid_set; |
|
60 DavBool gid_set; |
|
61 } FileInfo; |
|
62 |
|
63 uint32_t parse_finfo_settings(const char *str, char **unknown); |
53 |
64 |
54 int resource_set_finfo(const char *path, DavResource *res, uint32_t finfo); |
65 int resource_set_finfo(const char *path, DavResource *res, uint32_t finfo); |
55 int resource_set_finfo_s(struct stat *s, DavResource *res, uint32_t finfo); |
66 int resource_set_finfo_s(struct stat *s, DavResource *res, uint32_t finfo); |
56 |
67 |
|
68 XAttributes* xml_get_attributes(DavXmlNode *xml); |
57 XAttributes* file_get_attributes(const char *path); |
69 XAttributes* file_get_attributes(const char *path); |
58 int resource_set_xattr(DavResource *res, XAttributes *xattr); |
70 int resource_set_xattr(DavResource *res, XAttributes *xattr); |
59 void xattributes_free(XAttributes *xattr); |
71 void xattributes_free(XAttributes *xattr); |
|
72 |
|
73 char* get_xattr_hash(DavXmlNode *finfo); |
|
74 |
|
75 void finfo_get_values(DavXmlNode *xml, FileInfo *outval); |
60 |
76 |
61 #ifdef __cplusplus |
77 #ifdef __cplusplus |
62 } |
78 } |
63 #endif |
79 #endif |
64 |
80 |