summaryrefslogtreecommitdiff
path: root/includes/dhcpd.h
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-09-09 23:29:44 +0000
committerTed Lemon <source@isc.org>1999-09-09 23:29:44 +0000
commit3c48d36999f902026c0920a6562248ef0ab6a4f3 (patch)
treeb1b0b7d6fea56d7849a6b331b49ad00921108c6f /includes/dhcpd.h
parent6e9a667a80ab26663d5401087e64d51185a65b58 (diff)
downloadisc-dhcp-3c48d36999f902026c0920a6562248ef0ab6a4f3.tar.gz
Add delete methods. Add flags for host_decl.
Diffstat (limited to 'includes/dhcpd.h')
-rw-r--r--includes/dhcpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index 6e2e0798..bb61d552 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 *,