From 5f0bf222e0e11fa3265b02a993653ebd400018c3 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 3 Dec 2008 16:06:36 -0500 Subject: - give callback registration the ability to return errors - make the nis plugin register two types of internal plugins, since it can't just be a postop plugin any more --- src/back-nis.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/back-nis.c') diff --git a/src/back-nis.c b/src/back-nis.c index 9d95789..9e0475c 100644 --- a/src/back-nis.c +++ b/src/back-nis.c @@ -929,10 +929,18 @@ backend_startup(struct plugin_state *state) } /* Set up our post-op callbacks. */ -void -backend_init(Slapi_PBlock *pb, struct plugin_state *state) +int +backend_init_postop(Slapi_PBlock *pb, struct plugin_state *state) { slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "hooking up postoperation callbacks\n"); - backend_shr_postop_init(pb, state); + return backend_shr_postop_init(pb, state); +} + +int +backend_init_internal_postop(Slapi_PBlock *pb, struct plugin_state *state) +{ + slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, + "hooking up internal postoperation callbacks\n"); + return backend_shr_internal_postop_init(pb, state); } -- cgit