ze-filter  (ze-filter-0.8.0-develop-180218)
ze-resolve-cache.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : Tue Dec 20 22:45:42 CET 2005
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 
25 #ifndef __ZE_RESOLVE_CACHE_H
26 
27 #define RESOLVE_CACHE_RW 0
28 #define RESOLVE_CACHE_WR 0
29 #define RESOLVE_CACHE_RD 1
30 
31 bool resolve_cache_init(char *dbdir, int rwmode);
32 
33 bool resolve_cache_check(char *prefix, char *key, char *value, size_t size);
34 
35 bool resolve_cache_add(char *prefix, char *key, char *value);
36 
37 bool resolve_cache_times(time_t dt_sync, time_t dt_check, time_t dt_expire);
38 
39 void resolve_cache_log_enable(bool enable);
40 
41 # define __ZE_RESOLVE_CACHE_H 1
42 #endif /* __ZE_RESOLVE_CACHE_H */
bool resolve_cache_add(char *prefix, char *key, char *value)
bool resolve_cache_times(time_t dt_sync, time_t dt_check, time_t dt_expire)
bool resolve_cache_init(char *dbdir, int rwmode)
bool resolve_cache_check(char *prefix, char *key, char *value, size_t size)
void resolve_cache_log_enable(bool enable)