7 /* register application-specific dictionaries
9 /* #include <mail_dict.h>
11 /* void mail_dict_init()
13 /* This module registers dictionary types that depend on higher-level
14 /* Postfix-specific interfaces and protocols.
18 /* The Secure Mailer license must be distributed with this software.
21 /* IBM T.J. Watson Research
23 /* Yorktown Heights, NY 10598, USA
30 /* Utility library. */
37 #include <dict_proxy.h>
38 #include <dict_ldap.h>
39 #include <dict_mysql.h>
40 #include <dict_pgsql.h>
41 #include <mail_dict.h>
45 struct DICT
*(*open
) (const char *, int, int);
48 static const DICT_OPEN_INFO dict_open_info
[] = {
49 DICT_TYPE_PROXY
, dict_proxy_open
,
51 DICT_TYPE_LDAP
, dict_ldap_open
,
54 DICT_TYPE_MYSQL
, dict_mysql_open
,
57 DICT_TYPE_PGSQL
, dict_pgsql_open
,
62 /* mail_dict_init - dictionaries that depend on Postfix-specific interfaces */
64 void mail_dict_init(void)
66 const DICT_OPEN_INFO
*dp
;
68 for (dp
= dict_open_info
; dp
->type
; dp
++)
69 dict_open_register(dp
->type
, dp
->open
);