1 /* init.c - initialize shell backend */
12 #ifdef SLAPD_SHELL_DYNAMIC
15 G_MODULE_EXPORT void init_module(int argc, char *argv[]) {
18 memset( &bi, 0, sizeof(bi) );
20 bi.bi_init = shell_back_initialize;
25 #endif /* SLAPD_SHELL_DYNAMIC */
28 shell_back_initialize(
37 bi->bi_db_init = shell_back_db_init;
38 bi->bi_db_config = shell_back_db_config;
41 bi->bi_db_destroy = shell_back_db_destroy;
43 bi->bi_op_bind = shell_back_bind;
44 bi->bi_op_unbind = shell_back_unbind;
45 bi->bi_op_search = shell_back_search;
46 bi->bi_op_compare = shell_back_compare;
47 bi->bi_op_modify = shell_back_modify;
48 bi->bi_op_modrdn = shell_back_modrdn;
49 bi->bi_op_add = shell_back_add;
50 bi->bi_op_delete = shell_back_delete;
51 bi->bi_op_abandon = shell_back_abandon;
55 bi->bi_connection_init = 0;
56 bi->bi_connection_destroy = 0;
68 si = (struct shellinfo *) ch_calloc( 1, sizeof(struct shellinfo) );
76 shell_back_db_destroy(
80 free( be->be_private );