]> 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/*
e00b005a 2 * "$Id: network.h 5043 2006-02-01 18:55:16Z mike $"
ef416fc2 3 *
4 * Network interface definitions for the Common UNIX Printing System
5 * (CUPS) scheduler.
6 *
e00b005a 7 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
14 * at:
15 *
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
20 *
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26/*
27 * Structures...
28 */
29
30typedef struct cupsd_netif_s /**** Network interface data ****/
31{
ef416fc2 32 int is_local, /* Local (not point-to-point) interface? */
33 port; /* Listen port */
34 http_addr_t address, /* Network address */
35 mask, /* Network mask */
36 broadcast; /* Broadcast address */
e00b005a 37 char name[32], /* Network interface name */
38 hostname[1]; /* Hostname associated with interface */
ef416fc2 39} cupsd_netif_t;
40
41
42/*
43 * Globals...
44 */
45
46VAR time_t NetIFTime VALUE(0);
47 /* Network interface list time */
e00b005a 48VAR cups_array_t *NetIFList VALUE(NULL);
49 /* Array of network interfaces */
ef416fc2 50
51/*
52 * Prototypes...
53 */
54
55extern cupsd_netif_t *cupsdNetIFFind(const char *name);
ef416fc2 56extern void cupsdNetIFUpdate(void);
57
58
59/*
e00b005a 60 * End of "$Id: network.h 5043 2006-02-01 18:55:16Z mike $".
ef416fc2 61 */