]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/dirsvc.h
Merge changes from CUPS 1.6svn-r10112.
[thirdparty/cups.git] / scheduler / dirsvc.h
1 /*
2 * "$Id: dirsvc.h 7933 2008-09-11 00:44:58Z mike $"
3 *
4 * Directory services definitions for the CUPS scheduler.
5 *
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
8 *
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 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
14 */
15
16 /*
17 * Browse protocols...
18 */
19
20 #define BROWSE_DNSSD 1 /* DNS Service Discovery (aka Bonjour) */
21 #define BROWSE_SMB 2 /* SMB/Samba */
22 #define BROWSE_LPD 4 /* LPD via xinetd or launchd */
23 #define BROWSE_ALL 7 /* All protocols */
24
25
26 /*
27 * Globals...
28 */
29
30 VAR int Browsing VALUE(TRUE),
31 /* Whether or not browsing is enabled */
32 BrowseWebIF VALUE(FALSE),
33 /* Whether the web interface is advertised */
34 BrowseLocalProtocols
35 VALUE(BROWSE_ALL);
36 /* Protocols to support for local printers */
37 #ifdef HAVE_DNSSD
38 VAR char *DNSSDComputerName VALUE(NULL),
39 /* Computer/server name */
40 *DNSSDHostName VALUE(NULL),
41 /* Hostname */
42 *DNSSDRegType VALUE(NULL);
43 /* Bonjour registration type */
44 VAR cups_array_t *DNSSDAlias VALUE(NULL);
45 /* List of dynamic ServerAlias's */
46 VAR int DNSSDPort VALUE(0);
47 /* Port number to register */
48 VAR cups_array_t *DNSSDPrinters VALUE(NULL);
49 /* Printers we have registered */
50 VAR DNSServiceRef DNSSDRef VALUE(NULL),
51 /* Master DNS-SD service reference */
52 WebIFRef VALUE(NULL);
53 /* Service reference for the web interface */
54 #endif /* HAVE_DNSSD */
55
56 VAR char *LPDConfigFile VALUE(NULL),
57 /* LPD configuration file */
58 *SMBConfigFile VALUE(NULL);
59 /* SMB configuration file */
60
61
62 /*
63 * Prototypes...
64 */
65
66 extern void cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit);
67 extern void cupsdRegisterPrinter(cupsd_printer_t *p);
68 extern void cupsdStartBrowsing(void);
69 extern void cupsdStopBrowsing(void);
70 #ifdef HAVE_DNSSD
71 extern void cupsdUpdateDNSSDName(void);
72 #endif /* HAVE_DNSSD */
73
74
75 /*
76 * End of "$Id: dirsvc.h 7933 2008-09-11 00:44:58Z mike $".
77 */