26 #ifndef _SMF_SETTINGS_H
27 #define _SMF_SETTINGS_H
29 #include "spmfilter_config.h"
67 char *backend_connection;
130 int smf_settings_set_debug(
SMFSettings_T *settings,
int debug);
147 int smf_settings_set_config_file(
SMFSettings_T *settings,
char *cf);
164 int smf_settings_set_queue_dir(
SMFSettings_T *settings,
char *qd);
180 void smf_settings_set_engine(
SMFSettings_T *settings,
char *engine);
197 int smf_settings_add_module(
SMFSettings_T *settings,
char *module);
216 void smf_settings_set_module_fail(
SMFSettings_T *settings,
int i);
234 void smf_settings_set_nexthop(
SMFSettings_T *settings,
char *nexthop);
253 void smf_settings_set_nexthop_fail_code(
SMFSettings_T *settings,
int i);
261 int smf_settings_get_nexthop_fail_code(
SMFSettings_T *settings);
272 void smf_settings_set_nexthop_fail_msg(
SMFSettings_T *settings,
char *msg);
280 char *smf_settings_get_nexthop_fail_msg(
SMFSettings_T *settings);
288 void smf_settings_set_backend(
SMFSettings_T *settings,
char *backend);
314 void smf_settings_set_backend_connection(
SMFSettings_T *settings,
char *conn);
322 char *smf_settings_get_backend_connection(
SMFSettings_T *settings);
330 void smf_settings_set_add_header(
SMFSettings_T *settings,
int i);
346 void smf_settings_set_max_size(
SMFSettings_T *settings,
unsigned long size);
354 unsigned long smf_settings_get_max_size(
SMFSettings_T *settings);
378 void smf_settings_set_lib_dir(
SMFSettings_T *settings,
char *lib_dir);
394 void smf_settings_set_pid_file(
SMFSettings_T *settings,
char *pid_file);
410 void smf_settings_set_bind_ip(
SMFSettings_T *settings,
char *ip);
426 void smf_settings_set_bind_port(
SMFSettings_T *settings,
int port);
442 void smf_settings_set_listen_backlog(
SMFSettings_T *settings,
int backlog);
450 int smf_settings_get_listen_backlog(
SMFSettings_T *settings);
458 void smf_settings_set_foreground(
SMFSettings_T *settings,
int foreground);
474 void smf_settings_set_user(
SMFSettings_T *settings,
char *user);
490 void smf_settings_set_group(
SMFSettings_T *settings,
char *group);
506 void smf_settings_set_max_childs(
SMFSettings_T *settings,
int max_childs);
522 void smf_settings_set_spare_childs(
SMFSettings_T *settings,
int spare_childs);
538 void smf_settings_set_syslog_facility(
SMFSettings_T *settings,
char *facility);
546 int smf_settings_get_syslog_facility(
SMFSettings_T *settings);
556 int smf_settings_set_smtp_code(
SMFSettings_T *settings,
int code,
char *msg);
565 char *smf_settings_get_smtp_code(
SMFSettings_T *settings,
int code);
573 void smf_settings_set_smtpd_timeout(
SMFSettings_T *settings,
int timeout);
593 void smf_settings_set_sql_driver(
SMFSettings_T *settings,
char *driver);
609 void smf_settings_set_sql_name(
SMFSettings_T *settings,
char *name);
626 int smf_settings_add_sql_host(
SMFSettings_T *settings,
char *host);
642 void smf_settings_set_sql_port(
SMFSettings_T *settings,
int port);
658 void smf_settings_set_sql_user(
SMFSettings_T *settings,
char *user);
674 void smf_settings_set_sql_pass(
SMFSettings_T *settings,
char *pass);
690 void smf_settings_set_sql_user_query(
SMFSettings_T *settings,
char *query);
698 char *smf_settings_get_sql_user_query(
SMFSettings_T *settings);
706 void smf_settings_set_sql_encoding(
SMFSettings_T *settings,
char *encoding);
714 char *smf_settings_get_sql_encoding(
SMFSettings_T *settings);
722 void smf_settings_set_sql_max_connections(
SMFSettings_T *settings,
int i);
730 int smf_settings_get_sql_max_connections(
SMFSettings_T *settings);
738 void smf_settings_set_ldap_uri(
SMFSettings_T *settings,
char *uri);
755 int smf_settings_add_ldap_host(
SMFSettings_T *settings,
char *host);
771 void smf_settings_set_ldap_port(
SMFSettings_T *settings,
int port);
787 void smf_settings_set_ldap_binddn(
SMFSettings_T *settings,
char *binddn);
803 void smf_settings_set_ldap_bindpw(
SMFSettings_T *settings,
char *bindpw);
819 void smf_settings_set_ldap_base(
SMFSettings_T *settings,
char *base);
835 void smf_settings_set_ldap_referrals(
SMFSettings_T *settings,
int i);
843 int smf_settings_get_ldap_referrals(
SMFSettings_T *settings);
855 void smf_settings_set_ldap_scope(
SMFSettings_T *settings,
char *scope);
871 void smf_settings_set_ldap_user_query(
SMFSettings_T *settings,
char *query);
879 char *smf_settings_get_ldap_user_query(
SMFSettings_T *settings);
887 void smf_settings_set_lookup_persistent(
SMFSettings_T *settings,
int persistent);
895 int smf_settings_get_lookup_persistent(
SMFSettings_T *settings);
905 char *smf_settings_group_get(
SMFSettings_T *settings,
char *group_name,
char *key);
915 int smf_settings_group_get_integer(
SMFSettings_T *settings,
char *group_name,
char *key);
925 int smf_settings_group_get_boolean(
SMFSettings_T *settings,
char *group_name,
char *key);