]> arthur.barton.de Git - netatalk.git/blob - libatalk/cnid/cnid_init.c
New MySQL CNID backend
[netatalk.git] / libatalk / cnid / cnid_init.c
1
2 /* 
3  *
4  * Copyright (c) 2003 the Netatalk Team
5  * Copyright (c) 2003 Rafal Lewczuk <rlewczuk@pronet.pl>
6  * 
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.
11  *
12  */
13
14 /*
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.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif /* HAVE_CONFIG_H */
24
25 #include <atalk/cnid.h>
26 #include <atalk/list.h>
27 #include <atalk/logger.h>
28 #include <stdlib.h>
29
30
31 #ifdef CNID_BACKEND_DB3
32 extern struct _cnid_module cnid_db3_module;
33 #endif
34
35 #ifdef CNID_BACKEND_HASH
36 extern struct _cnid_module cnid_hash_module;
37 #endif
38
39 #ifdef CNID_BACKEND_LAST
40 extern struct _cnid_module cnid_last_module;
41 #endif
42
43 #ifdef CNID_BACKEND_MTAB
44 extern struct _cnid_module cnid_mtab_module;
45 #endif
46
47 #ifdef CNID_BACKEND_CDB
48 extern struct _cnid_module cnid_cdb_module;
49 #endif
50
51 #ifdef CNID_BACKEND_DBD
52 extern struct _cnid_module cnid_dbd_module;
53 #endif
54
55 #ifdef CNID_BACKEND_TDB
56 extern struct _cnid_module cnid_tdb_module;
57 #endif
58
59 #ifdef CNID_BACKEND_MYSQL
60 extern struct _cnid_module cnid_mysql_module;
61 #endif
62
63 void cnid_init(void)
64 {
65 #ifdef CNID_BACKEND_DB3
66     cnid_register(&cnid_db3_module);
67 #endif
68
69 #ifdef CNID_BACKEND_HASH
70     cnid_register(&cnid_hash_module);
71 #endif
72
73 #ifdef CNID_BACKEND_LAST
74     cnid_register(&cnid_last_module);
75 #endif
76
77 #ifdef CNID_BACKEND_MTAB
78     cnid_register(&cnid_mtab_module);
79 #endif
80
81 #ifdef CNID_BACKEND_CDB
82     cnid_register(&cnid_cdb_module);
83 #endif
84
85 #ifdef CNID_BACKEND_DBD
86     cnid_register(&cnid_dbd_module);
87 #endif
88
89 #ifdef CNID_BACKEND_TDB
90     cnid_register(&cnid_tdb_module);
91 #endif
92
93 #ifdef CNID_BACKEND_MYSQL
94     cnid_register(&cnid_mysql_module);
95 #endif
96 }