diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-01 11:36:02 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-01 11:36:02 -0400 |
commit | bb722d19687012a3af9734d7b2b196f3d09a820a (patch) | |
tree | 89100b5c6b5ecdff5d88408b4792289d79e08516 /src/plug-sch.c | |
parent | 3e813914dd169339e282cd86cca50dffefef6cd6 (diff) | |
download | slapi-nis-bb722d19687012a3af9734d7b2b196f3d09a820a.tar.gz slapi-nis-bb722d19687012a3af9734d7b2b196f3d09a820a.tar.xz slapi-nis-bb722d19687012a3af9734d7b2b196f3d09a820a.zip |
- add a startup function to finish populating our private data
Diffstat (limited to 'src/plug-sch.c')
-rw-r--r-- | src/plug-sch.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plug-sch.c b/src/plug-sch.c index 21d792e..fdb819a 100644 --- a/src/plug-sch.c +++ b/src/plug-sch.c @@ -92,6 +92,17 @@ plugin_state_init(Slapi_PBlock *pb, struct plugin_state **lstate) return 0; } +static int +plugin_startup(Slapi_PBlock *pb) +{ + /* Populate the maps and data. */ + struct plugin_state *state; + slapi_pblock_get(pb, SLAPI_PLUGIN_PRIVATE, &state); + slapi_pblock_get(pb, SLAPI_TARGET_DN, &state->plugin_base); + backend_startup(state); + return 0; +} + int schema_compat_plugin_init(Slapi_PBlock *pb) { @@ -105,6 +116,7 @@ schema_compat_plugin_init(Slapi_PBlock *pb) /* Register the plugin with the server. */ slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_03); slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, &plugin_description); + slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, &plugin_startup); slapi_pblock_set(pb, SLAPI_PLUGIN_PRIVATE, state); /* Let the backend do its setup. */ map_init(pb, state); |