From: Ted Lemon Date: Mon, 12 Jun 2000 20:25:37 +0000 (+0000) Subject: Initialize the dhcp_type_host type definition. X-Git-Tag: V3-BETA-2-PATCH-1~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e9f14044f5efff74e3dc64a78e498e5b5dc410f;p=thirdparty%2Fdhcp.git Initialize the dhcp_type_host type definition. --- diff --git a/server/omapi.c b/server/omapi.c index fbc139ee1..fa245cc19 100644 --- a/server/omapi.c +++ b/server/omapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: omapi.c,v 1.30 2000/06/07 00:28:21 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: omapi.c,v 1.31 2000/06/12 20:25:37 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -59,6 +59,7 @@ static char copyright[] = omapi_object_type_t *dhcp_type_lease; omapi_object_type_t *dhcp_type_pool; omapi_object_type_t *dhcp_type_class; +omapi_object_type_t *dhcp_type_host; #if defined (FAILOVER_PROTOCOL) omapi_object_type_t *dhcp_type_failover_state; omapi_object_type_t *dhcp_type_failover_link; @@ -121,6 +122,22 @@ void dhcp_db_objects_setup () log_fatal ("Can't register pool object type: %s", isc_result_totext (status)); + status = omapi_object_type_register (&dhcp_type_host, + "host", + dhcp_host_set_value, + dhcp_host_get_value, + dhcp_host_destroy, + dhcp_host_signal_handler, + dhcp_host_stuff_values, + dhcp_host_lookup, + dhcp_host_create, + dhcp_host_remove, 0, 0, + sizeof (struct host_decl)); + + if (status != ISC_R_SUCCESS) + log_fatal ("Can't register host object type: %s", + isc_result_totext (status)); + #if defined (FAILOVER_PROTOCOL) status = omapi_object_type_register (&dhcp_type_failover_state, "failover-state",