]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/dirsvc.h
Update svn:keyword properties.
[thirdparty/cups.git] / scheduler / dirsvc.h
CommitLineData
ef416fc2 1/*
f2d18633 2 * "$Id$"
ef416fc2 3 *
10d09e33 4 * Directory services definitions for the CUPS scheduler.
ef416fc2 5 *
f3c17241 6 * Copyright 2007-2012 by Apple Inc.
f7deaa1a 7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 8 *
9 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14 */
15
ef416fc2 16/*
17 * Browse protocols...
18 */
19
a2326b5b
MS
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 */
ef416fc2 24
25
26/*
27 * Globals...
28 */
29
30VAR int Browsing VALUE(TRUE),
31 /* Whether or not browsing is enabled */
b19ccc9e
MS
32 BrowseWebIF VALUE(FALSE),
33 /* Whether the web interface is advertised */
ef416fc2 34 BrowseLocalProtocols
a2326b5b 35 VALUE(BROWSE_ALL);
ef416fc2 36 /* Protocols to support for local printers */
f3c17241 37#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
536bc2c6 38VAR char *DNSSDComputerName VALUE(NULL),
7a14d768 39 /* Computer/server name */
84315f46 40 *DNSSDHostName VALUE(NULL),
536bc2c6 41 /* Hostname */
f3c17241
MS
42 *DNSSDSubTypes VALUE(NULL);
43 /* Bonjour registration subtypes */
e07d4801
MS
44VAR cups_array_t *DNSSDAlias VALUE(NULL);
45 /* List of dynamic ServerAlias's */
7a14d768
MS
46VAR int DNSSDPort VALUE(0);
47 /* Port number to register */
48VAR cups_array_t *DNSSDPrinters VALUE(NULL);
49 /* Printers we have registered */
f3c17241
MS
50# ifdef HAVE_DNSSD
51VAR DNSServiceRef DNSSDMaster VALUE(NULL);
7a14d768 52 /* Master DNS-SD service reference */
f3c17241
MS
53# else /* HAVE_AVAHI */
54VAR AvahiThreadedPoll *DNSSDMaster VALUE(NULL);
55 /* Master polling interface for Avahi */
56VAR AvahiClient *DNSSDClient VALUE(NULL);
57 /* Client information */
58# endif /* HAVE_DNSSD */
59VAR cupsd_srv_t WebIFSrv VALUE(NULL);
7a14d768 60 /* Service reference for the web interface */
f3c17241 61#endif /* HAVE_DNSSD || HAVE_AVAHI */
7a14d768 62
2e4ff8af
MS
63VAR char *LPDConfigFile VALUE(NULL),
64 /* LPD configuration file */
65 *SMBConfigFile VALUE(NULL);
66 /* SMB configuration file */
b423cd4c 67
ef416fc2 68
69/*
70 * Prototypes...
71 */
72
f7deaa1a 73extern void cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit);
f7deaa1a 74extern void cupsdRegisterPrinter(cupsd_printer_t *p);
ef416fc2 75extern void cupsdStartBrowsing(void);
ef416fc2 76extern void cupsdStopBrowsing(void);
f3c17241 77#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
7a14d768 78extern void cupsdUpdateDNSSDName(void);
f3c17241 79#endif /* HAVE_DNSSD || HAVE_AVAHI */
ef416fc2 80
81
82/*
f2d18633 83 * End of "$Id$".
ef416fc2 84 */