]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
2 * Network interface definitions for the CUPS scheduler.
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
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/".
18 typedef struct cupsd_netif_s
/**** Network interface data ****/
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 */
25 size_t hostlen
; /* Length of hostname */
26 char name
[32], /* Network interface name */
27 hostname
[1]; /* Hostname associated with interface */
35 VAR
int NetIFUpdate
VALUE(1);
36 /* Network interface list needs updating */
37 VAR cups_array_t
*NetIFList
VALUE(NULL
);
38 /* Array of network interfaces */
44 extern cupsd_netif_t
*cupsdNetIFFind(const char *name
);
45 extern void cupsdNetIFUpdate(void);