1 /* $NetBSD: smtpd_token.h,v 1.1.1.1 2009/06/23 10:08:56 tron Exp $ */ 2 3 /*++ 4 /* NAME 5 /* smtpd_token 3h 6 /* SUMMARY 7 /* tokenize SMTPD command 8 /* SYNOPSIS 9 /* #include <smtpd_token.h> 10 /* DESCRIPTION 11 /* .nf 12 13 /* 14 * Utility library. 15 */ 16 #include <vstring.h> 17 18 /* 19 * External interface. 20 */ 21 typedef struct SMTPD_TOKEN { 22 int tokval; 23 char *strval; 24 VSTRING *vstrval; 25 } SMTPD_TOKEN; 26 27 #define SMTPD_TOK_OTHER 0 28 #define SMTPD_TOK_ADDR 1 29 #define SMTPD_TOK_ERROR 2 30 31 extern int smtpd_token(char *, SMTPD_TOKEN **); 32 33 /* LICENSE 34 /* .ad 35 /* .fi 36 /* The Secure Mailer license must be distributed with this software. 37 /* AUTHOR(S) 38 /* Wietse Venema 39 /* IBM T.J. Watson Research 40 /* P.O. Box 704 41 /* Yorktown Heights, NY 10598, USA 42 /*--*/ 43