1 /* $NetBSD: transport.h,v 1.1.1.1 2009/06/23 10:08:58 tron Exp $ */ 2 3 /*++ 4 /* NAME 5 /* transport 3h 6 /* SUMMARY 7 /* transport mapping 8 /* SYNOPSIS 9 /* #include "transport.h" 10 /* DESCRIPTION 11 /* .nf 12 13 /* 14 * System library. 15 */ 16 #include <time.h> 17 18 /* 19 * Utility library. 20 */ 21 #include <vstring.h> 22 23 /* 24 * Global library. 25 */ 26 #include <maps.h> 27 28 /* 29 * External interface. 30 */ 31 typedef struct TRANSPORT_INFO { 32 MAPS *transport_path; 33 VSTRING *wildcard_channel; 34 VSTRING *wildcard_nexthop; 35 int transport_errno; 36 time_t expire; 37 } TRANSPORT_INFO; 38 39 extern TRANSPORT_INFO *transport_pre_init(const char *, const char *); 40 extern void transport_post_init(TRANSPORT_INFO *); 41 extern int transport_lookup(TRANSPORT_INFO *, const char *, const char *, VSTRING *, VSTRING *); 42 extern void transport_free(TRANSPORT_INFO *); 43 44 /* LICENSE 45 /* .ad 46 /* .fi 47 /* The Secure Mailer license must be distributed with this software. 48 /* AUTHOR(S) 49 /* Wietse Venema 50 /* IBM T.J. Watson Research 51 /* P.O. Box 704 52 /* Yorktown Heights, NY 10598, USA 53 /*--*/ 54