diff -r feb2f1e115c6 -r c858850f3d3a src/server/util/object.h --- a/src/server/util/object.h Mon May 06 14:54:40 2013 +0200 +++ b/src/server/util/object.h Thu May 09 13:19:51 2013 +0200 @@ -67,10 +67,11 @@ }; struct httpd_object { - char *name; - char *path; - dtable *dt; - int nd; + pool_handle_t *pool; + char *name; + char *path; + dtable *dt; + int nd; }; struct httpd_objset { @@ -102,12 +103,13 @@ httpd_object **objects; int nobj; pool_handle_t *pool; + uint32_t ref; // reference counter }; /* * creates a new httpd_object */ -httpd_object* object_new(char *name); +httpd_object* object_new(pool_handle_t *pool, char *name); /* * frees an httpd_object