Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / inet_addr_list.h
blobcd5277bc64143bb0df4889bf688152fb8bba2dce
1 /* $NetBSD$ */
3 #ifndef _INET_ADDR_LIST_H_INCLUDED_
4 #define _INET_ADDR_LIST_H_INCLUDED_
6 /*++
7 /* NAME
8 /* inet_addr_list 3h
9 /* SUMMARY
10 /* internet address list manager
11 /* SYNOPSIS
12 /* #include <inet_addr_list.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <myaddrinfo.h> /* generic name/addr API */
22 * External interface.
24 typedef struct INET_ADDR_LIST {
25 int used; /* nr of elements in use */
26 int size; /* actual list size */
27 struct sockaddr_storage *addrs; /* payload */
28 } INET_ADDR_LIST;
30 extern void inet_addr_list_init(INET_ADDR_LIST *);
31 extern void inet_addr_list_free(INET_ADDR_LIST *);
32 extern void inet_addr_list_uniq(INET_ADDR_LIST *);
33 extern void inet_addr_list_append(INET_ADDR_LIST *, struct sockaddr *);
35 /* LICENSE
36 /* .ad
37 /* .fi
38 /* The Secure Mailer license must be distributed with this software.
39 /* AUTHOR(S)
40 /* Wietse Venema
41 /* IBM T.J. Watson Research
42 /* P.O. Box 704
43 /* Yorktown Heights, NY 10598, USA
44 /*--*/
46 #endif