]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add reference count to option_state structure.
authorTed Lemon <source@isc.org>
Mon, 5 Apr 1999 19:11:44 +0000 (19:11 +0000)
committerTed Lemon <source@isc.org>
Mon, 5 Apr 1999 19:11:44 +0000 (19:11 +0000)
includes/dhcpd.h

index ca23607ffd5a80e2e8b69f05eb8a0ae945c45c07..f32427c8c53123d83e45a8d9a60742dabb1330ac 100644 (file)
@@ -102,6 +102,7 @@ struct option_cache {
 };
 
 struct option_state {
+       int refcnt;
        int universe_count;
        VOIDPTR universes [1];
 };
@@ -1054,6 +1055,8 @@ int dns_host_entry_reference PROTO ((struct dns_host_entry **,
                                     struct dns_host_entry *, char *));
 int dns_host_entry_dereference PROTO ((struct dns_host_entry **, char *));
 int option_state_allocate PROTO ((struct option_state **, char *));
+int option_state_reference PROTO ((struct option_state **,
+                                  struct option_state *, char *));
 int option_state_dereference PROTO ((struct option_state **, char *));
 
 /* print.c */