]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
503b54c9 | 2 | * Network interface definitions for the CUPS scheduler. |
ef416fc2 | 3 | * |
503b54c9 MS |
4 | * Copyright 2007-2010 by Apple Inc. |
5 | * Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
ef416fc2 | 6 | * |
503b54c9 MS |
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/". | |
ef416fc2 | 12 | */ |
13 | ||
14 | /* | |
15 | * Structures... | |
16 | */ | |
17 | ||
18 | typedef struct cupsd_netif_s /**** Network interface data ****/ | |
19 | { | |
ef416fc2 | 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 */ | |
e07d4801 | 25 | size_t hostlen; /* Length of hostname */ |
e00b005a | 26 | char name[32], /* Network interface name */ |
27 | hostname[1]; /* Hostname associated with interface */ | |
ef416fc2 | 28 | } cupsd_netif_t; |
29 | ||
30 | ||
31 | /* | |
32 | * Globals... | |
33 | */ | |
34 | ||
411affcf | 35 | VAR int NetIFUpdate VALUE(1); |
36 | /* Network interface list needs updating */ | |
e00b005a | 37 | VAR cups_array_t *NetIFList VALUE(NULL); |
38 | /* Array of network interfaces */ | |
ef416fc2 | 39 | |
40 | /* | |
41 | * Prototypes... | |
42 | */ | |
43 | ||
44 | extern cupsd_netif_t *cupsdNetIFFind(const char *name); | |
ef416fc2 | 45 | extern void cupsdNetIFUpdate(void); |