blob: 1326f8abab798198bd9843e8ddd7446be91b1c7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/*
* "$Id: dirsvc.h 10996 2013-05-29 11:51:34Z msweet $"
*
* Directory services definitions for the CUPS scheduler.
*
* Copyright 2007-2012 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* law. Distribution and use rights are outlined in the file "LICENSE.txt"
* which should have been included with this file. If this file is
* file is missing or damaged, see the license at "http://www.cups.org/".
*/
/*
* Browse protocols...
*/
#define BROWSE_DNSSD 1 /* DNS Service Discovery (aka Bonjour) */
#define BROWSE_SMB 2 /* SMB/Samba */
#define BROWSE_LPD 4 /* LPD via xinetd or launchd */
#define BROWSE_ALL 7 /* All protocols */
/*
* Globals...
*/
VAR int Browsing VALUE(TRUE),
/* Whether or not browsing is enabled */
BrowseWebIF VALUE(FALSE),
/* Whether the web interface is advertised */
BrowseLocalProtocols
VALUE(BROWSE_ALL);
/* Protocols to support for local printers */
#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
VAR char *DNSSDComputerName VALUE(NULL),
/* Computer/server name */
*DNSSDHostName VALUE(NULL),
/* Hostname */
*DNSSDSubTypes VALUE(NULL);
/* Bonjour registration subtypes */
VAR cups_array_t *DNSSDAlias VALUE(NULL);
/* List of dynamic ServerAlias's */
VAR int DNSSDPort VALUE(0);
/* Port number to register */
VAR cups_array_t *DNSSDPrinters VALUE(NULL);
/* Printers we have registered */
# ifdef HAVE_DNSSD
VAR DNSServiceRef DNSSDMaster VALUE(NULL);
/* Master DNS-SD service reference */
# else /* HAVE_AVAHI */
VAR AvahiThreadedPoll *DNSSDMaster VALUE(NULL);
/* Master polling interface for Avahi */
VAR AvahiClient *DNSSDClient VALUE(NULL);
/* Client information */
# endif /* HAVE_DNSSD */
VAR cupsd_srv_t WebIFSrv VALUE(NULL);
/* Service reference for the web interface */
#endif /* HAVE_DNSSD || HAVE_AVAHI */
VAR char *LPDConfigFile VALUE(NULL),
/* LPD configuration file */
*SMBConfigFile VALUE(NULL);
/* SMB configuration file */
/*
* Prototypes...
*/
extern void cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit);
extern void cupsdRegisterPrinter(cupsd_printer_t *p);
extern void cupsdStartBrowsing(void);
extern void cupsdStopBrowsing(void);
#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
extern void cupsdUpdateDNSSDName(void);
#endif /* HAVE_DNSSD || HAVE_AVAHI */
/*
* End of "$Id: dirsvc.h 10996 2013-05-29 11:51:34Z msweet $".
*/
|