1*41fbaed0Stron /* $NetBSD: name_code.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $ */ 2*41fbaed0Stron 3*41fbaed0Stron #ifndef _NAME_CODE_H_INCLUDED_ 4*41fbaed0Stron #define _NAME_CODE_H_INCLUDED_ 5*41fbaed0Stron 6*41fbaed0Stron /*++ 7*41fbaed0Stron /* NAME 8*41fbaed0Stron /* name_mask 3h 9*41fbaed0Stron /* SUMMARY 10*41fbaed0Stron /* name to number table mapping 11*41fbaed0Stron /* SYNOPSIS 12*41fbaed0Stron /* #include <name_code.h> 13*41fbaed0Stron /* DESCRIPTION 14*41fbaed0Stron /* .nf 15*41fbaed0Stron 16*41fbaed0Stron /* 17*41fbaed0Stron * External interface. 18*41fbaed0Stron */ 19*41fbaed0Stron typedef struct { 20*41fbaed0Stron const char *name; 21*41fbaed0Stron int code; 22*41fbaed0Stron } NAME_CODE; 23*41fbaed0Stron 24*41fbaed0Stron #define NAME_CODE_FLAG_NONE 0 25*41fbaed0Stron #define NAME_CODE_FLAG_STRICT_CASE (1<<0) 26*41fbaed0Stron 27*41fbaed0Stron extern int name_code(const NAME_CODE *, int, const char *); 28*41fbaed0Stron extern const char *str_name_code(const NAME_CODE *, int); 29*41fbaed0Stron 30*41fbaed0Stron /* LICENSE 31*41fbaed0Stron /* .ad 32*41fbaed0Stron /* .fi 33*41fbaed0Stron /* The Secure Mailer license must be distributed with this software. 34*41fbaed0Stron /* AUTHOR(S) 35*41fbaed0Stron /* Wietse Venema 36*41fbaed0Stron /* IBM T.J. Watson Research 37*41fbaed0Stron /* P.O. Box 704 38*41fbaed0Stron /* Yorktown Heights, NY 10598, USA 39*41fbaed0Stron /*--*/ 40*41fbaed0Stron 41*41fbaed0Stron #endif 42