src/server/public/webdav.h

branch
webdav
changeset 215
68e824ba4a4f
parent 212
d7e7ea9c6bc6
child 216
ce2866ec97f6
equal deleted inserted replaced
214:4d7ac67a1c14 215:68e824ba4a4f
44 44
45 typedef struct WebdavProperty WebdavProperty; 45 typedef struct WebdavProperty WebdavProperty;
46 typedef struct WebdavPList WebdavPList; 46 typedef struct WebdavPList WebdavPList;
47 typedef struct WebdavNSList WebdavNSList; 47 typedef struct WebdavNSList WebdavNSList;
48 48
49 typedef struct WebdavPListIterator WebdavPListIterator;
50
49 typedef enum WebdavLockScope WebdavLockScope; 51 typedef enum WebdavLockScope WebdavLockScope;
50 typedef enum WebdavLockType WebdavLockType; 52 typedef enum WebdavLockType WebdavLockType;
51 53
52 typedef enum WebdavValueType WebdavValueType; 54 typedef enum WebdavValueType WebdavValueType;
53 55
120 122
121 struct WebdavNSList { 123 struct WebdavNSList {
122 WSNamespace *namespace; 124 WSNamespace *namespace;
123 WebdavNSList *prev; 125 WebdavNSList *prev;
124 WebdavNSList *next; 126 WebdavNSList *next;
127 };
128
129 struct WebdavPListIterator {
130 WebdavPList **list;
131 WebdavPList *cur;
132 WebdavPList *next;
133 size_t index;
125 }; 134 };
126 135
127 enum WebdavLockScope { 136 enum WebdavLockScope {
128 WEBDAV_LOCK_EXCLUSIVE = 0, 137 WEBDAV_LOCK_EXCLUSIVE = 0,
129 WEBDAV_LOCK_SHARED, 138 WEBDAV_LOCK_SHARED,
271 280
272 WebdavPList* webdav_plist_clone(pool_handle_t *pool, WebdavPList *list); 281 WebdavPList* webdav_plist_clone(pool_handle_t *pool, WebdavPList *list);
273 282
274 size_t webdav_plist_count(WebdavPList *list); 283 size_t webdav_plist_count(WebdavPList *list);
275 284
285 WebdavPListIterator webdav_plist_iterator(WebdavPList **list);
286 int webdav_plist_iterator_next(WebdavPListIterator *i, WebdavPList **cur);
287 void webdav_plist_iterator_remove_current(WebdavPListIterator *i);
288
276 WSNamespace* webdav_dav_namespace(void); 289 WSNamespace* webdav_dav_namespace(void);
277 WebdavProperty* webdav_dav_property( 290 WebdavProperty* webdav_dav_property(
278 pool_handle_t *pool, 291 pool_handle_t *pool,
279 const char *name); 292 const char *name);
280 293

mercurial