]>
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 * Licensed under Apache License v2.0. See the file "LICENSE" for more
15 typedef struct cupsd_netif_s
/**** Network interface data ****/
17 int is_local
, /* Local (not point-to-point) interface? */
18 port
; /* Listen port */
19 http_addr_t address
, /* Network address */
20 mask
, /* Network mask */
21 broadcast
; /* Broadcast address */
22 size_t hostlen
; /* Length of hostname */
23 char name
[32], /* Network interface name */
24 hostname
[1]; /* Hostname associated with interface */
32 VAR
int NetIFUpdate
VALUE(1);
33 /* Network interface list needs updating */
34 VAR cups_array_t
*NetIFList
VALUE(NULL
);
35 /* Array of network interfaces */
41 extern cupsd_netif_t
*cupsdNetIFFind(const char *name
);
42 extern void cupsdNetIFUpdate(void);