From: Ted Lemon Date: Thu, 9 Sep 1999 23:29:44 +0000 (+0000) Subject: Add delete methods. Add flags for host_decl. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c48d36999f902026c0920a6562248ef0ab6a4f3;p=thirdparty%2Fdhcp.git Add delete methods. Add flags for host_decl. --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 6e2e07982..bb61d552b 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -387,6 +387,8 @@ struct host_decl { struct group *group; struct data_string auth_key_id; int flags; +#define HOST_DECL_DELETED 1 +#define HOST_DECL_DYNAMIC 2 }; struct permit { @@ -1047,6 +1049,7 @@ extern omapi_object_type_t *dhcp_type_host; void enter_host PROTO ((struct host_decl *, int, int)); +void delete_host PROTO ((struct host_decl *, int)); struct host_decl *find_hosts_by_haddr PROTO ((int, unsigned char *, int)); struct host_decl *find_hosts_by_uid PROTO ((unsigned char *, int)); struct subnet *find_host_for_network PROTO ((struct host_decl **, @@ -1651,6 +1654,8 @@ isc_result_t dhcp_lease_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *); isc_result_t dhcp_lease_create (omapi_object_t **, omapi_object_t *); +isc_result_t dhcp_lease_delete (omapi_object_t *, + omapi_object_t *); #if 0 isc_result_t dhcp_group_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, @@ -1683,6 +1688,8 @@ isc_result_t dhcp_host_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *); isc_result_t dhcp_host_create (omapi_object_t **, omapi_object_t *); +isc_result_t dhcp_host_delete (omapi_object_t *, + omapi_object_t *); isc_result_t dhcp_pool_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *); @@ -1698,6 +1705,8 @@ isc_result_t dhcp_pool_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *); isc_result_t dhcp_pool_create (omapi_object_t **, omapi_object_t *); +isc_result_t dhcp_pool_delete (omapi_object_t *, + omapi_object_t *); isc_result_t dhcp_shared_network_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *,