diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-01 15:28:02 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-01 18:55:19 +1100 |
commit | 7eb2eed156c8358b5a857444651841a17651229c (patch) | |
tree | e5ce92abe829e5d016a46168c5e220b0fa7820ad /source4/nbt_server | |
parent | 43f7c9ca26f72141c87babe428e46e9a293c4b9c (diff) | |
download | samba-7eb2eed156c8358b5a857444651841a17651229c.tar.gz samba-7eb2eed156c8358b5a857444651841a17651229c.tar.bz2 samba-7eb2eed156c8358b5a857444651841a17651229c.zip |
s4-dsdb: convert the rest of the ldb modules to the new module type
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/wins_ldb.c | 7 | ||||
-rw-r--r-- | source4/nbt_server/wscript_build | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/source4/nbt_server/wins/wins_ldb.c b/source4/nbt_server/wins/wins_ldb.c index fd609b2780..a45cf2ecf1 100644 --- a/source4/nbt_server/wins/wins_ldb.c +++ b/source4/nbt_server/wins/wins_ldb.c @@ -113,9 +113,14 @@ failed: return LDB_ERR_OTHER; } -_PUBLIC_ const struct ldb_module_ops ldb_wins_ldb_module_ops = { +const struct ldb_module_ops ldb_wins_ldb_module_ops = { .name = "wins_ldb", .add = wins_ldb_verify, .modify = wins_ldb_verify, .init_context = wins_ldb_init }; + +int ldb_wins_ldb_module_init(const char *version) +{ + return ldb_register_module(&ldb_wins_ldb_module_ops); +} diff --git a/source4/nbt_server/wscript_build b/source4/nbt_server/wscript_build index 42ef68e6aa..eee008d0b8 100644 --- a/source4/nbt_server/wscript_build +++ b/source4/nbt_server/wscript_build @@ -10,7 +10,8 @@ bld.SAMBA_SUBSYSTEM('WINSDB', bld.SAMBA_MODULE('ldb_wins_ldb', source='wins/wins_ldb.c', subsystem='ldb', - init_function='LDB_MODULE(wins_ldb)', + init_function='ldb_wins_ldb_module_init', + module_init_name='ldb_init_module', deps='ldb netif samba-hostconfig samba-util', internal_module=False, ) |