From: Ted Lemon Date: Mon, 5 Apr 1999 19:11:44 +0000 (+0000) Subject: Add reference count to option_state structure. X-Git-Tag: V3-ALPHA-19990408~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a340de9528d7610f38154f9d9b9be8919c62dc2e;p=thirdparty%2Fdhcp.git Add reference count to option_state structure. --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index ca23607ff..f32427c8c 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -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 */