]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
503b54c9 | 2 | * Directory services definitions for the CUPS scheduler. |
ef416fc2 | 3 | * |
503b54c9 MS |
4 | * Copyright 2007-2012 by Apple Inc. |
5 | * Copyright 1997-2007 by Easy Software Products, all rights reserved. | |
ef416fc2 | 6 | * |
503b54c9 MS |
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 | * which should have been included with this file. If this file is | |
11 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 12 | */ |
13 | ||
ef416fc2 | 14 | /* |
15 | * Browse protocols... | |
16 | */ | |
17 | ||
a2326b5b MS |
18 | #define BROWSE_DNSSD 1 /* DNS Service Discovery (aka Bonjour) */ |
19 | #define BROWSE_SMB 2 /* SMB/Samba */ | |
20 | #define BROWSE_LPD 4 /* LPD via xinetd or launchd */ | |
21 | #define BROWSE_ALL 7 /* All protocols */ | |
ef416fc2 | 22 | |
23 | ||
24 | /* | |
25 | * Globals... | |
26 | */ | |
27 | ||
28 | VAR int Browsing VALUE(TRUE), | |
29 | /* Whether or not browsing is enabled */ | |
b19ccc9e MS |
30 | BrowseWebIF VALUE(FALSE), |
31 | /* Whether the web interface is advertised */ | |
ef416fc2 | 32 | BrowseLocalProtocols |
a2326b5b | 33 | VALUE(BROWSE_ALL); |
ef416fc2 | 34 | /* Protocols to support for local printers */ |
f3c17241 | 35 | #if defined(HAVE_DNSSD) || defined(HAVE_AVAHI) |
536bc2c6 | 36 | VAR char *DNSSDComputerName VALUE(NULL), |
7a14d768 | 37 | /* Computer/server name */ |
84315f46 | 38 | *DNSSDHostName VALUE(NULL), |
536bc2c6 | 39 | /* Hostname */ |
f3c17241 MS |
40 | *DNSSDSubTypes VALUE(NULL); |
41 | /* Bonjour registration subtypes */ | |
e07d4801 MS |
42 | VAR cups_array_t *DNSSDAlias VALUE(NULL); |
43 | /* List of dynamic ServerAlias's */ | |
7a14d768 MS |
44 | VAR int DNSSDPort VALUE(0); |
45 | /* Port number to register */ | |
46 | VAR cups_array_t *DNSSDPrinters VALUE(NULL); | |
47 | /* Printers we have registered */ | |
f3c17241 MS |
48 | # ifdef HAVE_DNSSD |
49 | VAR DNSServiceRef DNSSDMaster VALUE(NULL); | |
7a14d768 | 50 | /* Master DNS-SD service reference */ |
f3c17241 MS |
51 | # else /* HAVE_AVAHI */ |
52 | VAR AvahiThreadedPoll *DNSSDMaster VALUE(NULL); | |
53 | /* Master polling interface for Avahi */ | |
54 | VAR AvahiClient *DNSSDClient VALUE(NULL); | |
55 | /* Client information */ | |
56 | # endif /* HAVE_DNSSD */ | |
57 | VAR cupsd_srv_t WebIFSrv VALUE(NULL); | |
7a14d768 | 58 | /* Service reference for the web interface */ |
f3c17241 | 59 | #endif /* HAVE_DNSSD || HAVE_AVAHI */ |
7a14d768 | 60 | |
2e4ff8af MS |
61 | VAR char *LPDConfigFile VALUE(NULL), |
62 | /* LPD configuration file */ | |
63 | *SMBConfigFile VALUE(NULL); | |
64 | /* SMB configuration file */ | |
b423cd4c | 65 | |
ef416fc2 | 66 | |
67 | /* | |
68 | * Prototypes... | |
69 | */ | |
70 | ||
f7deaa1a | 71 | extern void cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit); |
f7deaa1a | 72 | extern void cupsdRegisterPrinter(cupsd_printer_t *p); |
ef416fc2 | 73 | extern void cupsdStartBrowsing(void); |
ef416fc2 | 74 | extern void cupsdStopBrowsing(void); |
f3c17241 | 75 | #if defined(HAVE_DNSSD) || defined(HAVE_AVAHI) |
7a14d768 | 76 | extern void cupsdUpdateDNSSDName(void); |
f3c17241 | 77 | #endif /* HAVE_DNSSD || HAVE_AVAHI */ |