]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add remote-handle to remote object.
authorTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:28:26 +0000 (23:28 +0000)
committerTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:28:26 +0000 (23:28 +0000)
dhcpctl/dhcpctl.h
dhcpctl/remote.c

index ec58381f9ee03caafbbca6142e7793f37b63ff6f..96b1d8446196424a7d92bb8f56ccc18b22a94b22 100644 (file)
@@ -42,6 +42,7 @@ typedef struct {
        omapi_typed_data_t *rtype;
        isc_result_t waitstatus;
        omapi_typed_data_t *message;
+       omapi_handle_t remote_handle;
 } dhcpctl_remote_object_t;
 
 omapi_object_type_t *dhcpctl_callback_type;
@@ -59,6 +60,7 @@ 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);
+dhcpctl_status dhcpctl_object_delete (dhcpctl_handle, dhcpctl_handle);
 
 dhcpctl_status dhcpctl_set_callback (dhcpctl_handle, void *,
                                     void (*) (dhcpctl_handle,
index b5e0a29befb73ec80de3d5eb59e104f9d7bedf8d..aa95742e7d80b9053c7b87e4fc714fc1d337f42e 100644 (file)
@@ -184,8 +184,15 @@ isc_result_t dhcpctl_remote_set_value (omapi_object_t *h,
                                       omapi_data_string_t *name,
                                       omapi_typed_data_t *value)
 {
+       dhcpctl_remote_object_t *ro;
        if (h -> type != dhcpctl_remote_type)
                return ISC_R_INVALIDARG;
+       ro = (dhcpctl_remote_object_t *)h;
+
+       if (!omapi_ds_strcmp (name, "remote-handle")) {
+               return omapi_get_int_value (&ro -> remote_handle,
+                                           value);
+       }
 
        if (h -> inner && h -> inner -> type -> set_value)
                return (*(h -> inner -> type -> set_value))