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