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