4 * Copyright (c) 2003 the Netatalk Team
5 * Copyright (c) 2003 Rafal Lewczuk <rlewczuk@pronet.pl>
7 * This program is free software; you can redistribute and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation version 2 of the License or later
10 * version if explicitly stated by any of above copyright holders.
15 * This file contains initialization stuff for CNID backends.
16 * Currently it only employs static bindings.
17 * No plans for dynamically loaded CNID backends here (temporary).
18 * Maybe somewhere in the future.
23 #endif /* HAVE_CONFIG_H */
25 #include <atalk/cnid.h>
26 #include <atalk/list.h>
27 #include <atalk/logger.h>
31 #ifdef CNID_BACKEND_DB3
32 extern struct _cnid_module cnid_db3_module;
35 #ifdef CNID_BACKEND_HASH
36 extern struct _cnid_module cnid_hash_module;
39 #ifdef CNID_BACKEND_LAST
40 extern struct _cnid_module cnid_last_module;
43 #ifdef CNID_BACKEND_MTAB
44 extern struct _cnid_module cnid_mtab_module;
47 #ifdef CNID_BACKEND_CDB
48 extern struct _cnid_module cnid_cdb_module;
51 #ifdef CNID_BACKEND_DBD
52 extern struct _cnid_module cnid_dbd_module;
55 #ifdef CNID_BACKEND_TDB
56 extern struct _cnid_module cnid_tdb_module;
61 #ifdef CNID_BACKEND_DB3
62 cnid_register(&cnid_db3_module);
65 #ifdef CNID_BACKEND_HASH
66 cnid_register(&cnid_hash_module);
69 #ifdef CNID_BACKEND_LAST
70 cnid_register(&cnid_last_module);
73 #ifdef CNID_BACKEND_MTAB
74 cnid_register(&cnid_mtab_module);
77 #ifdef CNID_BACKEND_CDB
78 cnid_register(&cnid_cdb_module);
81 #ifdef CNID_BACKEND_DBD
82 cnid_register(&cnid_dbd_module);
85 #ifdef CNID_BACKEND_TDB
86 cnid_register(&cnid_tdb_module);