]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
Merge changes from CUPS 1.4svn-r8540.
[thirdparty/cups.git] / scheduler / network.h
1 /*
2 * "$Id: network.h 6649 2007-07-11 21:46:42Z mike $"
3 *
4 * Network interface definitions for the Common UNIX Printing System
5 * (CUPS) scheduler.
6 *
7 * Copyright 2007-2009 by Apple Inc.
8 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
9 *
10 * These coded instructions, statements, and computer programs are the
11 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 * "LICENSE" which should have been included with this file. If this
14 * file is missing or damaged, see the license at "http://www.cups.org/".
15 */
16
17 /*
18 * Structures...
19 */
20
21 typedef struct cupsd_netif_s /**** Network interface data ****/
22 {
23 int is_local, /* Local (not point-to-point) interface? */
24 port; /* Listen port */
25 http_addr_t address, /* Network address */
26 mask, /* Network mask */
27 broadcast; /* Broadcast address */
28 size_t hostlen; /* Length of hostname */
29 char name[32], /* Network interface name */
30 hostname[1]; /* Hostname associated with interface */
31 } cupsd_netif_t;
32
33
34 /*
35 * Globals...
36 */
37
38 VAR int NetIFUpdate VALUE(1);
39 /* Network interface list needs updating */
40 VAR cups_array_t *NetIFList VALUE(NULL);
41 /* Array of network interfaces */
42
43 /*
44 * Prototypes...
45 */
46
47 extern cupsd_netif_t *cupsdNetIFFind(const char *name);
48 extern void cupsdNetIFUpdate(void);
49
50
51 /*
52 * End of "$Id: network.h 6649 2007-07-11 21:46:42Z mike $".
53 */