1 /* $NetBSD: maps.h,v 1.1.1.2 2013/01/02 18:58:59 tron Exp $ */ 2 3 #ifndef _MAPS_H_INCLUDED_ 4 #define _MAPS_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* maps 3h 9 /* SUMMARY 10 /* multi-dictionary search 11 /* SYNOPSIS 12 /* #include <maps.h> 13 /* DESCRIPTION 14 /* .nf 15 16 /* 17 * Utility library. 18 */ 19 #include <dict.h> 20 21 /* 22 * Dictionary name storage. We're borrowing from the argv(3) module. 23 */ 24 typedef struct MAPS { 25 char *title; 26 struct ARGV *argv; 27 int error; /* last request only */ 28 } MAPS; 29 30 extern MAPS *maps_create(const char *, const char *, int); 31 extern const char *maps_find(MAPS *, const char *, int); 32 extern MAPS *maps_free(MAPS *); 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 45 #endif 46