]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
46f144158e610cf1d80577394ce91f2114bf52e4
[thirdparty/cups.git] / scheduler / network.h
1 /*
2 * "$Id$"
3 *
4 * Network interface definitions for the Common UNIX Printing System
5 * (CUPS) scheduler.
6 *
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
14 * at:
15 *
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
20 *
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26 /*
27 * Structures...
28 */
29
30 typedef struct cups_netif_str /**** Network interface data ****/
31 {
32 struct cups_netif_str *next; /* Next interface in list */
33 char name[32], /* Network interface name */
34 hostname[HTTP_MAX_HOST];
35 /* Hostname associated with interface */
36 int is_local, /* Local (not point-to-point) interface? */
37 port; /* Listen port */
38 http_addr_t address, /* Network address */
39 mask, /* Network mask */
40 broadcast; /* Broadcast address */
41 } cups_netif_t;
42
43
44 /*
45 * Globals...
46 */
47
48 VAR time_t NetIFTime VALUE(0);
49 /* Network interface list time */
50 VAR cups_netif_t *NetIFList VALUE(NULL);
51 /* List of network interfaces */
52
53 /*
54 * Prototypes...
55 */
56
57 extern cups_netif_t *NetIFFind(const char *name);
58 extern void NetIFFree(void);
59 extern void NetIFUpdate(void);
60
61
62 /*
63 * End of "$Id$".
64 */