1/* $NetBSD$ */ 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 */ 31typedef struct TRANSPORT_INFO { 32 MAPS *transport_path; 33 VSTRING *wildcard_channel; 34 VSTRING *wildcard_nexthop; 35 int wildcard_errno; 36 time_t expire; 37} TRANSPORT_INFO; 38 39extern TRANSPORT_INFO *transport_pre_init(const char *, const char *); 40extern void transport_post_init(TRANSPORT_INFO *); 41extern int transport_lookup(TRANSPORT_INFO *, const char *, const char *, VSTRING *, VSTRING *); 42extern 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