60 DavBool mode_set; |
60 DavBool mode_set; |
61 DavBool uid_set; |
61 DavBool uid_set; |
62 DavBool gid_set; |
62 DavBool gid_set; |
63 } FileInfo; |
63 } FileInfo; |
64 |
64 |
|
65 typedef int(*xattr_filter_func)(const char*,void*); |
|
66 |
65 uint32_t parse_finfo_settings(const char *str, char **unknown); |
67 uint32_t parse_finfo_settings(const char *str, char **unknown); |
66 |
68 |
67 int resource_set_finfo(const char *path, DavResource *res, uint32_t finfo); |
69 int resource_set_finfo(const char *path, DavResource *res, uint32_t finfo); |
68 int resource_set_finfo_s(struct stat *s, DavResource *res, uint32_t finfo); |
70 int resource_set_finfo_s(struct stat *s, DavResource *res, uint32_t finfo); |
69 |
71 |
70 XAttributes* xml_get_attributes(DavXmlNode *xml); |
72 XAttributes* xml_get_attributes(DavXmlNode *xml); |
71 XAttributes* file_get_attributes(const char *path); |
73 XAttributes* file_get_attributes( |
|
74 const char *path, |
|
75 xattr_filter_func filter, |
|
76 void *filterdata); |
72 int resource_set_xattr(DavResource *res, XAttributes *xattr); |
77 int resource_set_xattr(DavResource *res, XAttributes *xattr); |
73 void xattributes_free(XAttributes *xattr); |
78 void xattributes_free(XAttributes *xattr); |
74 |
79 |
75 char* get_xattr_hash(DavXmlNode *finfo); |
80 char* get_xattr_hash(DavXmlNode *finfo); |
76 |
81 |