diff options
author | Ted Lemon <source@isc.org> | 1999-09-08 01:47:01 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-09-08 01:47:01 +0000 |
commit | f50487df7e45972fbde898ed24f9e30d505bcac0 (patch) | |
tree | f014a028628fc1170eb87bd27c468f60a029fef3 /dhcpctl/dhcpctl.h | |
parent | d2513ce0ae8c2dbaf78aabb10e984471928b032c (diff) | |
download | isc-dhcp-f50487df7e45972fbde898ed24f9e30d505bcac0.tar.gz |
Header file for dhcpctl library.
Diffstat (limited to 'dhcpctl/dhcpctl.h')
-rw-r--r-- | dhcpctl/dhcpctl.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dhcpctl/dhcpctl.h b/dhcpctl/dhcpctl.h new file mode 100644 index 00000000..38e00ca8 --- /dev/null +++ b/dhcpctl/dhcpctl.h @@ -0,0 +1,71 @@ +/* dhcpctl.h + + Subroutines providing general support for objects. */ + +/* + * Copyright (c) 1996-1999 Internet Software Consortium. + * Use is subject to license terms which appear in the file named + * ISC-LICENSE that should have accompanied this file when you + * received it. If a file named ISC-LICENSE did not accompany this + * file, or you are not sure the one you have is correct, you may + * obtain an applicable copy of the license at: + * + * http://www.isc.org/isc-license-1.0.html. + * + * This file is part of the ISC DHCP distribution. The documentation + * associated with this file is listed in the file DOCUMENTATION, + * included in the top-level directory of this release. + * + * Support and other services are available for ISC products - see + * http://www.isc.org for more information. + */ + +#include <omapip/omapip.h> + +typedef isc_result_t dhcpctl_status; +typedef omapi_object_t *dhcpctl_handle; +typedef omapi_data_string_t *dhcpctl_data_string; + +#define DHCPCTL_CREATE 1 +#define DHCPCTL_UPDATE 2 +#define DHCPCTL_EXCL 4 + +typedef struct { + OMAPI_OBJECT_PREAMBLE; + omapi_object_t *object; + void *data; + void (*callback) (dhcpctl_handle, dhcpctl_status, void *); +} dhcpctl_callback_object_t; + +omapi_object_type_t *dhcpctl_type_callback; + +dhcpctl_status dhcpctl_initialize (void); +dhcpctl_status dhcpctl_connect (dhcpctl_handle *, + char *, int, dhcpctl_handle); +dhcpctl_status dhcpctl_open_object (dhcpctl_handle, dhcpctl_handle, int); +dhcpctl_status dhcpctl_new_object (dhcpctl_handle *, dhcpctl_handle, char *); +dhcpctl_status dhcpctl_set_callback (dhcpctl_handle, void *, + void (*) (dhcpctl_handle, + dhcpctl_status, void *)); +dhcpctl_status dhcpctl_wait_for_completion (dhcpctl_handle, dhcpctl_status *); +dhcpctl_status dhcpctl_get_value (dhcpctl_data_string *, + dhcpctl_handle, char *); +dhcpctl_status dhcpctl_get_boolean (int *, dhcpctl_handle, char *); +dhcpctl_status dhcpctl_set_value (dhcpctl_handle, dhcpctl_data_string, char *); +dhcpctl_status dhcpctl_set_string_value (dhcpctl_handle, char *, char *); +dhcpctl_status dhcpctl_set_boolean_value (dhcpctl_handle, int, char *); +dhcpctl_status dhcpctl_object_update (dhcpctl_handle, dhcpctl_handle); +dhcpctl_status dhcpctl_object_refresh (dhcpctl_handle, dhcpctl_handle); + +isc_result_t dhcpctl_callback_set_value (omapi_object_t *, omapi_object_t *, + omapi_data_string_t *, + omapi_typed_data_t *); +isc_result_t dhcpctl_callback_get_value (omapi_object_t *, omapi_object_t *, + omapi_data_string_t *, + omapi_value_t **); +isc_result_t dhcpctl_callback_destroy (omapi_object_t *, char *); +isc_result_t dhcpctl_callback_signal_handler (omapi_object_t *, + char *, va_list); +isc_result_t dhcpctl_callback_stuff_values (omapi_object_t *, + omapi_object_t *, + omapi_object_t *); |