db_common.h revision 1.1.1.1
1/* $NetBSD: db_common.h,v 1.1.1.1 2009/06/23 10:08:45 tron Exp $ */ 2 3#ifndef _DB_COMMON_H_INCLUDED_ 4#define _DB_COMMON_H_INCLUDED_ 5 6/*++ 7/* NAME 8/* db_common 3h 9/* SUMMARY 10/* utilities common to network based dictionaries 11/* SYNOPSIS 12/* #include "db_common.h" 13/* DESCRIPTION 14/* .nf 15 */ 16 17 /* 18 * External interface. 19 */ 20#include "dict.h" 21#include "string_list.h" 22 23typedef void (*db_quote_callback_t)(DICT *, const char *, VSTRING *); 24 25extern int db_common_parse(DICT *, void **, const char *, int); 26extern void db_common_parse_domain(CFG_PARSER *, void *); 27extern int db_common_dict_partial(void *); 28extern int db_common_expand(void *, const char *, const char *, 29 const char *, VSTRING *, db_quote_callback_t); 30extern int db_common_check_domain(void *, const char *); 31extern void db_common_free_ctx(void *); 32extern void db_common_sql_build_query(VSTRING *query, CFG_PARSER *parser); 33 34/* LICENSE 35/* .ad 36/* .fi 37/* The Secure Mailer license must be distributed with this software. 38/* AUTHOR(S) 39/* Wietse Venema 40/* IBM T.J. Watson Research 41/* P.O. Box 704 42/* Yorktown Heights, NY 10598, USA 43/* 44/* Liviu Daia 45/* Institute of Mathematics of the Romanian Academy 46/* P.O. BOX 1-764 47/* RO-014700 Bucharest, ROMANIA 48/* 49/* Jose Luis Tallon 50/* G4 J.E. - F.I. - U.P.M. 51/* Campus de Montegancedo, S/N 52/* E-28660 Madrid, SPAIN 53/* 54/* Victor Duchovni 55/* Morgan Stanley 56/*--*/ 57 58#endif 59 60