3 * $Id: cnid_init.c,v 1.3 2009-10-13 22:55:37 didg Exp $
5 * Copyright (c) 2003 the Netatalk Team
6 * Copyright (c) 2003 Rafal Lewczuk <rlewczuk@pronet.pl>
8 * This program is free software; you can redistribute and/or modify
9 * it under the terms of the GNU General Public License as published
10 * by the Free Software Foundation version 2 of the License or later
11 * version if explicitly stated by any of above copyright holders.
16 * This file contains initialization stuff for CNID backends.
17 * Currently it only employs static bindings.
18 * No plans for dynamically loaded CNID backends here (temporary).
19 * Maybe somewhere in the future.
24 #endif /* HAVE_CONFIG_H */
26 #include <atalk/cnid.h>
27 #include <atalk/list.h>
28 #include <atalk/logger.h>
32 #ifdef CNID_BACKEND_DB3
33 extern struct _cnid_module cnid_db3_module;
36 #ifdef CNID_BACKEND_HASH
37 extern struct _cnid_module cnid_hash_module;
40 #ifdef CNID_BACKEND_LAST
41 extern struct _cnid_module cnid_last_module;
44 #ifdef CNID_BACKEND_MTAB
45 extern struct _cnid_module cnid_mtab_module;
48 #ifdef CNID_BACKEND_CDB
49 extern struct _cnid_module cnid_cdb_module;
52 #ifdef CNID_BACKEND_DBD
53 extern struct _cnid_module cnid_dbd_module;
56 #ifdef CNID_BACKEND_TDB
57 extern struct _cnid_module cnid_tdb_module;
62 #ifdef CNID_BACKEND_DB3
63 cnid_register(&cnid_db3_module);
66 #ifdef CNID_BACKEND_HASH
67 cnid_register(&cnid_hash_module);
70 #ifdef CNID_BACKEND_LAST
71 cnid_register(&cnid_last_module);
74 #ifdef CNID_BACKEND_MTAB
75 cnid_register(&cnid_mtab_module);
78 #ifdef CNID_BACKEND_CDB
79 cnid_register(&cnid_cdb_module);
82 #ifdef CNID_BACKEND_DBD
83 cnid_register(&cnid_dbd_module);
86 #ifdef CNID_BACKEND_TDB
87 cnid_register(&cnid_tdb_module);