]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
4 * Network interface definitions for the CUPS scheduler.
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged, see the license at "http://www.cups.org/".
20 typedef struct cupsd_netif_s
/**** Network interface data ****/
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 */
27 size_t hostlen
; /* Length of hostname */
28 char name
[32], /* Network interface name */
29 hostname
[1]; /* Hostname associated with interface */
37 VAR
int NetIFUpdate
VALUE(1);
38 /* Network interface list needs updating */
39 VAR cups_array_t
*NetIFList
VALUE(NULL
);
40 /* Array of network interfaces */
46 extern cupsd_netif_t
*cupsdNetIFFind(const char *name
);
47 extern void cupsdNetIFUpdate(void);