Back to index

opendkim  2.6.6
dkim-cache.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2007 Sendmail, Inc. and its suppliers.
00003 **    All rights reserved.
00004 **
00005 **  Copyright (c) 2009, The OpenDKIM Project.  All rights reserved.
00006 */
00007 
00008 #ifndef _DKIM_CACHE_H_
00009 #define _DKIM_CACHE_H_
00010 
00011 #include "build-config.h"
00012 
00013 #include "dkim-internal.h"
00014 
00015 #ifdef QUERY_CACHE
00016 
00017 #ifndef lint
00018 static char dkim_cache_h_id[] = "@(#)$Id: dkim-cache.h,v 1.2 2009/11/22 08:15:50 grooverdan Exp $";
00019 #endif /* !lint */
00020 
00021 /* libdb includes */
00022 #include <db.h>
00023 
00024 /* prototypes */
00025 extern void dkim_cache_close __P((DB *));
00026 extern int dkim_cache_expire __P((DB *, int, int *));
00027 extern DB *dkim_cache_init __P((int *, char *));
00028 extern int dkim_cache_insert __P((DB *, char *, char *, int, int *));
00029 extern int dkim_cache_query __P((DB *, char *, int, char *, size_t *, int *));
00030 extern void dkim_cache_stats __P((u_int *, u_int *, u_int *));
00031 
00032 #endif /* QUERY_CACHE */
00033 
00034 #endif /* ! _DKIM_CACHE_H_ */