Commit 7528da64 authored by Ted Lemon's avatar Ted Lemon

Constifications from Brian Murrell.

parent fd81bd9e
......@@ -256,8 +256,8 @@ dhcpctl_status dhcpctl_set_value (dhcpctl_handle h, dhcpctl_data_string value,
trouble of creating a data_string for a NUL-terminated string.
Does not update the server - just sets the value on the handle. */
dhcpctl_status dhcpctl_set_string_value (dhcpctl_handle h, char *value,
char *value_name)
dhcpctl_status dhcpctl_set_string_value (dhcpctl_handle h, const char *value,
const char *value_name)
isc_result_t status;
omapi_typed_data_t *tv = (omapi_typed_data_t *)0;
......@@ -20,6 +20,9 @@
* for more information.
#ifndef _DHCPCTL_H_
#define _DHCPCTL_H_
#include <omapip/omapip.h>
typedef isc_result_t dhcpctl_status;
......@@ -45,8 +48,12 @@ typedef struct {
omapi_handle_t remote_handle;
} dhcpctl_remote_object_t;
#ifndef __cplusplus
// for some reason, these cause problems when included in C++ classes
omapi_object_type_t *dhcpctl_callback_type;
omapi_object_type_t *dhcpctl_remote_type;
#endif _DHCPCTL_H_
dhcpctl_status dhcpctl_initialize (void);
dhcpctl_status dhcpctl_connect (dhcpctl_handle *,
......@@ -56,8 +63,10 @@ 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_string_value (dhcpctl_handle, const char *,
const char *);
dhcpctl_status dhcpctl_set_boolean_value (dhcpctl_handle, int, char *);
dhcpctl_status dhcpctl_set_int_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_remove (dhcpctl_handle, dhcpctl_handle);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment