43 #define FINFO_OWNER 2 |
45 #define FINFO_OWNER 2 |
44 #define FINFO_MODE 4 |
46 #define FINFO_MODE 4 |
45 #define FINFO_XATTR 8 |
47 #define FINFO_XATTR 8 |
46 |
48 |
47 typedef struct XAttributes { |
49 typedef struct XAttributes { |
48 size_t nattr; |
50 size_t nattr; |
49 char **names; |
51 char **names; |
50 sstr_t *values; |
52 cxmutstr *values; |
51 char *hash; |
53 char *hash; |
52 } XAttributes; |
54 } XAttributes; |
53 |
55 |
54 typedef struct FileInfo { |
56 typedef struct FileInfo { |
55 time_t last_modified; |
57 time_t last_modified; |
56 mode_t mode; |
58 mode_t mode; |
57 uid_t uid; |
59 uid_t uid; |
58 gid_t gid; |
60 gid_t gid; |
59 DavBool date_set; |
61 DavBool date_set; |
60 DavBool mode_set; |
62 DavBool mode_set; |
61 DavBool uid_set; |
63 DavBool uid_set; |
62 DavBool gid_set; |
64 DavBool gid_set; |
63 } FileInfo; |
65 } FileInfo; |
64 |
66 |
65 typedef int(*xattr_filter_func)(const char*,void*); |
67 typedef int(*xattr_filter_func)(const char*,void*); |
66 |
68 |
67 uint32_t parse_finfo_settings(const char *str, char **unknown); |
69 uint32_t parse_finfo_settings(const char *str, char **unknown); |