Home
Documentation
API
Download
Header list
Data Structures
Data Fields
Globals
smf_lookup.h
Go to the documentation of this file.
1
/* spmfilter - mail filtering framework
2
* Copyright (C) 2009-2012 Axel Steiner and SpaceNet AG
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 3 of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
46
#ifndef _SMF_LOOKUP_H
47
#define _SMF_LOOKUP_H
48
49
#include "
smf_settings.h
"
50
#include "
smf_list.h
"
51
59
char
*
smf_lookup_db4_query
(
char
*database,
char
*key);
60
71
int
smf_lookup_db4_update
(
const
char
*database,
const
char
*key,
const
char
*value);
72
79
int
smf_lookup_sql_connect
(
SMFSettings_T
*settings);
80
86
void
smf_lookup_sql_disconnect
(
SMFSettings_T
*settings);
87
95
SMFList_T
*
smf_lookup_sql_query
(
SMFSettings_T
*settings,
const
char
*q, ...);
96
103
int
smf_lookup_ldap_connect
(
SMFSettings_T
*settings);
104
111
void
smf_lookup_ldap_disconnect
(
SMFSettings_T
*settings);
112
121
SMFList_T
*
smf_lookup_ldap_query
(
SMFSettings_T
*settings,
const
char
*q, ...);
122
123
124
#endif
/* _SMF_LOOKUP_H */