1 /* $NetBSD: db_common.h,v 1.1.1.2 2013/01/02 18:58:56 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 23 typedef void (*db_quote_callback_t)(DICT *, const char *, VSTRING *); 24 25 extern int db_common_parse(DICT *, void **, const char *, int); 26 extern void *db_common_alloc(DICT *); 27 extern void db_common_parse_domain(CFG_PARSER *, void *); 28 extern int db_common_dict_partial(void *); 29 extern int db_common_expand(void *, const char *, const char *, 30 const char *, VSTRING *, db_quote_callback_t); 31 extern int db_common_check_domain(void *, const char *); 32 extern void db_common_free_ctx(void *); 33 extern void db_common_sql_build_query(VSTRING *query, CFG_PARSER *parser); 34 35 /* LICENSE 36 /* .ad 37 /* .fi 38 /* The Secure Mailer license must be distributed with this software. 39 /* AUTHOR(S) 40 /* Wietse Venema 41 /* IBM T.J. Watson Research 42 /* P.O. Box 704 43 /* Yorktown Heights, NY 10598, USA 44 /* 45 /* Liviu Daia 46 /* Institute of Mathematics of the Romanian Academy 47 /* P.O. BOX 1-764 48 /* RO-014700 Bucharest, ROMANIA 49 /* 50 /* Jose Luis Tallon 51 /* G4 J.E. - F.I. - U.P.M. 52 /* Campus de Montegancedo, S/N 53 /* E-28660 Madrid, SPAIN 54 /* 55 /* Victor Duchovni 56 /* Morgan Stanley 57 /*--*/ 58 59 #endif 60 61