]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/network.h
Load cups into easysw/current.
[thirdparty/cups.git] / scheduler / network.h
CommitLineData
ef416fc2 1/*
bc44d920 2 * "$Id: network.h 6649 2007-07-11 21:46:42Z mike $"
ef416fc2 3 *
4 * Network interface definitions for the Common UNIX Printing System
5 * (CUPS) scheduler.
6 *
bc44d920 7 * Copyright 2007 by Apple Inc.
e00b005a 8 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 9 *
10 * These coded instructions, statements, and computer programs are the
bc44d920 11 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
ef416fc2 13 * "LICENSE" which should have been included with this file. If this
bc44d920 14 * file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 15 */
16
17/*
18 * Structures...
19 */
20
21typedef struct cupsd_netif_s /**** Network interface data ****/
22{
ef416fc2 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 */
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 37VAR int NetIFUpdate VALUE(1);
38 /* Network interface list needs updating */
e00b005a 39VAR cups_array_t *NetIFList VALUE(NULL);
40 /* Array of network interfaces */
ef416fc2 41
42/*
43 * Prototypes...
44 */
45
46extern cupsd_netif_t *cupsdNetIFFind(const char *name);
ef416fc2 47extern void cupsdNetIFUpdate(void);
48
49
50/*
bc44d920 51 * End of "$Id: network.h 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 52 */