summaryrefslogtreecommitdiffstats
path: root/src/back-nis.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-03 16:06:36 -0500
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-03 16:06:36 -0500
commit5f0bf222e0e11fa3265b02a993653ebd400018c3 (patch)
treefaed59d8d6541851c6ee20765adf0860b29ab4e1 /src/back-nis.c
parentcd84215d4d2907ddfae0b560ae8adfe40bc5f1cf (diff)
downloadslapi-nis-5f0bf222e0e11fa3265b02a993653ebd400018c3.tar.gz
slapi-nis-5f0bf222e0e11fa3265b02a993653ebd400018c3.tar.xz
slapi-nis-5f0bf222e0e11fa3265b02a993653ebd400018c3.zip
- 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
Diffstat (limited to 'src/back-nis.c')
-rw-r--r--src/back-nis.c14
1 files changed, 11 insertions, 3 deletions
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);
}