From 8db07dbeb986893457c9930193211565ca6b41c7 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 23 Jun 2000 21:05:22 +0000 Subject: [PATCH] "delete" function pointer changed to "expunge" to avoid C++ reserved word conflict, and renamed object_methoddelete to object_methodexpunge for consistency --- lib/omapi/include/omapi/omapi.h | 10 +++++----- lib/omapi/include/omapi/private.h | 5 +++-- lib/omapi/object.c | 14 +++++++------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/lib/omapi/include/omapi/omapi.h b/lib/omapi/include/omapi/omapi.h index 99358351e7..5451bd670f 100644 --- a/lib/omapi/include/omapi/omapi.h +++ b/lib/omapi/include/omapi/omapi.h @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: omapi.h,v 1.12 2000/06/23 20:30:27 tale Exp $ */ +/* $Id: omapi.h,v 1.13 2000/06/23 21:05:21 tale Exp $ */ /* * Definitions for the object management API and protocol. @@ -108,8 +108,8 @@ omapi_auth_use(omapi_object_t *manager, const char *name, * Public functions defined in protocol.c. */ isc_result_t -omapi_protocol_connect(omapi_object_t *object, const char *server, int port, - omapi_object_t *authinfo); +omapi_protocol_connect(omapi_object_t *object, const char *server, + in_port_t port, omapi_object_t *authinfo); void omapi_protocol_disconnect(omapi_object_t *handle, isc_boolean_t force); @@ -152,7 +152,7 @@ omapi_connection_puthandle(omapi_object_t *connection, omapi_object_t *object); */ isc_result_t omapi_listener_listen(omapi_object_t *mgr, isc_sockaddr_t *addr, - dns_acl_t *acl, int backlog, + dns_acl_t *acl, unsigned int backlog, isc_taskaction_t destroy_action, void *destroy_arg); void @@ -220,7 +220,7 @@ omapi_object_register(omapi_objecttype_t **type, const char *name, isc_result_t ((*create)(omapi_object_t **)), - isc_result_t ((*delete)(omapi_object_t *))); + isc_result_t ((*expunge)(omapi_object_t *))); isc_result_t omapi_object_set(omapi_object_t *handle, omapi_string_t *name, diff --git a/lib/omapi/include/omapi/private.h b/lib/omapi/include/omapi/private.h index 74f59699ad..dbdec09663 100644 --- a/lib/omapi/include/omapi/private.h +++ b/lib/omapi/include/omapi/private.h @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: private.h,v 1.19 2000/06/23 20:30:28 tale Exp $ */ +/* $Id: private.h,v 1.20 2000/06/23 21:05:22 tale Exp $ */ /***** ***** Private master include file for the OMAPI library. @@ -309,7 +309,8 @@ connection_init(void); #define connect_toserver omapi__connect_toserver isc_result_t -connect_toserver(omapi_object_t *connection, const char *server, int port); +connect_toserver(omapi_object_t *connection, const char *server, + in_port_t port); #define connection_send omapi__connection_send isc_result_t diff --git a/lib/omapi/object.c b/lib/omapi/object.c index 9da73fa410..f5abdd7f22 100644 --- a/lib/omapi/object.c +++ b/lib/omapi/object.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: object.c,v 1.18 2000/06/23 20:30:26 tale Exp $ */ +/* $Id: object.c,v 1.19 2000/06/23 21:05:20 tale Exp $ */ /* Principal Author: Ted Lemon */ @@ -55,7 +55,7 @@ struct omapi_objecttype { isc_result_t (*create)(omapi_object_t **object); - isc_result_t (*delete)(omapi_object_t *object); + isc_result_t (*expunge)(omapi_object_t *object); }; isc_result_t @@ -246,7 +246,7 @@ omapi_object_register(omapi_objecttype_t **type, const char *name, isc_result_t (*create)(omapi_object_t **), - isc_result_t (*delete)(omapi_object_t *)) + isc_result_t (*expunge)(omapi_object_t *)) { omapi_objecttype_t *t; @@ -264,7 +264,7 @@ omapi_object_register(omapi_objecttype_t **type, const char *name, t->stuff_values = stuff_values; t->lookup = lookup; t->create = create; - t->delete = delete; + t->expunge = expunge; t->next = omapi_object_types; omapi_object_types = t; @@ -590,9 +590,9 @@ object_methodcreate(omapi_objecttype_t *type, omapi_object_t **object) { } isc_result_t -object_methoddelete(omapi_objecttype_t *type, omapi_object_t *object) { - if (type->delete != NULL) - return ((*(type->delete))(object)); +object_methodexpunge(omapi_objecttype_t *type, omapi_object_t *object) { + if (type->expunge != NULL) + return ((*(type->expunge))(object)); else return (ISC_R_NOTIMPLEMENTED); }