src/server/util/object.h

changeset 61
c858850f3d3a
parent 44
3da1f7b6847f
child 83
28433f06d5ee
--- 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

mercurial