diff options
author | Ted Lemon <source@isc.org> | 2000-02-15 20:40:36 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-02-15 20:40:36 +0000 |
commit | bdcaf7b95d9b5a409919e0f359e3c651a6f1e100 (patch) | |
tree | 530fc0f6b9e5dea5c661a6c173a87491ae1ba81c /omapip/dispatch.c | |
parent | f824c26ece3147d93ec56e172c3e6646086ed1ee (diff) | |
download | isc-dhcp-bdcaf7b95d9b5a409919e0f359e3c651a6f1e100.tar.gz |
Incorporate Brian Murrell's new OMAPI DHCP client changes.
Diffstat (limited to 'omapip/dispatch.c')
-rw-r--r-- | omapip/dispatch.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/omapip/dispatch.c b/omapip/dispatch.c index ae3c3826..c571737d 100644 --- a/omapip/dispatch.c +++ b/omapip/dispatch.c @@ -342,8 +342,29 @@ isc_result_t omapi_io_get_value (omapi_object_t *h, isc_result_t omapi_io_destroy (omapi_object_t *h, const char *file, int line) { + omapi_io_object_t *obj, *p, *last; + if (h -> type != omapi_type_io_object) return ISC_R_INVALIDARG; + + obj = (omapi_io_object_t *)h; + + /* only ios for interface objects? */ + if (strcmp (obj -> inner -> type ->name, "interface") == 0) { + /* remove from the list of I/O states */ + for (p = omapi_io_states.next; p; p = p -> next) { + if (p == obj) { + last -> next = p -> next; + break; + } + last = p; + } + + /* + * omapi_object_dereference ((omapi_object_t **)&obj, MDL); + */ + } + return ISC_R_SUCCESS; } |