diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-12-03 16:06:36 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-12-03 16:06:36 -0500 |
commit | 5f0bf222e0e11fa3265b02a993653ebd400018c3 (patch) | |
tree | faed59d8d6541851c6ee20765adf0860b29ab4e1 /src/back-nis.c | |
parent | cd84215d4d2907ddfae0b560ae8adfe40bc5f1cf (diff) | |
download | slapi-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.c | 14 |
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); } |