src/server/webdav/requestparser.c

branch
webdav
changeset 216
ce2866ec97f6
parent 212
d7e7ea9c6bc6
child 227
3c23855f7b46
equal deleted inserted replaced
215:68e824ba4a4f 216:ce2866ec97f6
36 36
37 #include "requestparser.h" 37 #include "requestparser.h"
38 38
39 #define xstreq(a, b) !strcmp((const char*)a, (const char*)b) 39 #define xstreq(a, b) !strcmp((const char*)a, (const char*)b)
40 40
41 // TODO: make function public
41 int proplist_add( 42 int proplist_add(
42 pool_handle_t *pool, 43 pool_handle_t *pool,
43 WebdavPList **begin, 44 WebdavPList **begin,
44 WebdavPList **end, 45 WebdavPList **end,
45 WebdavProperty *prop) 46 WebdavProperty *prop)
46 { 47 {
47 WebdavPList *elm = pool_malloc(pool, sizeof(WebdavPList)); 48 WebdavPList *elm = pool_malloc(pool, sizeof(WebdavPList));
48 if(!elm) { 49 if(!elm) {
49 return 1; 50 return 1;
50 } 51 }
52 elm->prev = *end;
51 elm->next = NULL; 53 elm->next = NULL;
52 elm->property = prop; 54 elm->property = prop;
53 55
54 if(!*begin) { 56 if(!*begin) {
55 *begin = elm; 57 *begin = elm;

mercurial