]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add delete methods. Add flags for host_decl.
authorTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:29:44 +0000 (23:29 +0000)
committerTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:29:44 +0000 (23:29 +0000)
includes/dhcpd.h

index 6e2e07982739331bb5c1a0ab69ac53a367c62fb5..bb61d552b8e15969d682e4d3a0e582df4be70f77 100644 (file)
@@ -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 *,