Blame scheduler/dirsvc.h

Packit 2fc92b
/*
Packit 2fc92b
 * Directory services definitions for the CUPS scheduler.
Packit 2fc92b
 *
Packit 2fc92b
 * Copyright 2007-2012 by Apple Inc.
Packit 2fc92b
 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
Packit 2fc92b
 *
Packit 2fc92b
 * These coded instructions, statements, and computer programs are the
Packit 2fc92b
 * property of Apple Inc. and are protected by Federal copyright
Packit 2fc92b
 * law.  Distribution and use rights are outlined in the file "LICENSE.txt"
Packit 2fc92b
 * which should have been included with this file.  If this file is
Packit 2fc92b
 * missing or damaged, see the license at "http://www.cups.org/".
Packit 2fc92b
 */
Packit 2fc92b
Packit 2fc92b
/*
Packit 2fc92b
 * Browse protocols...
Packit 2fc92b
 */
Packit 2fc92b
Packit 2fc92b
#define BROWSE_DNSSD	1		/* DNS Service Discovery (aka Bonjour) */
Packit 2fc92b
#define BROWSE_SMB	2		/* SMB/Samba */
Packit 2fc92b
#define BROWSE_LPD	4		/* LPD via xinetd or launchd */
Packit 2fc92b
#define BROWSE_ALL	7		/* All protocols */
Packit 2fc92b
Packit 2fc92b
Packit 2fc92b
/*
Packit 2fc92b
 * Globals...
Packit 2fc92b
 */
Packit 2fc92b
Packit 2fc92b
VAR int			Browsing	VALUE(TRUE),
Packit 2fc92b
					/* Whether or not browsing is enabled */
Packit 2fc92b
			BrowseWebIF	VALUE(FALSE),
Packit 2fc92b
					/* Whether the web interface is advertised */
Packit 2fc92b
			BrowseLocalProtocols
Packit 2fc92b
					VALUE(BROWSE_ALL);
Packit 2fc92b
					/* Protocols to support for local printers */
Packit 2fc92b
#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
Packit 2fc92b
VAR char		*DNSSDComputerName VALUE(NULL),
Packit 2fc92b
					/* Computer/server name */
Packit 2fc92b
			*DNSSDHostName	VALUE(NULL),
Packit 2fc92b
					/* Hostname */
Packit 2fc92b
			*DNSSDSubTypes VALUE(NULL);
Packit 2fc92b
					/* Bonjour registration subtypes */
Packit 2fc92b
VAR cups_array_t	*DNSSDAlias	VALUE(NULL);
Packit 2fc92b
					/* List of dynamic ServerAlias's */
Packit 2fc92b
VAR int			DNSSDPort	VALUE(0);
Packit 2fc92b
					/* Port number to register */
Packit 2fc92b
VAR cups_array_t	*DNSSDPrinters	VALUE(NULL);
Packit 2fc92b
					/* Printers we have registered */
Packit 2fc92b
#  ifdef HAVE_DNSSD
Packit 2fc92b
VAR DNSServiceRef	DNSSDMaster	VALUE(NULL);
Packit 2fc92b
					/* Master DNS-SD service reference */
Packit 2fc92b
#  else /* HAVE_AVAHI */
Packit e8a0b7
VAR AvahiCupsPoll	*DNSSDMaster	VALUE(NULL);
Packit 2fc92b
					/* Master polling interface for Avahi */
Packit 2fc92b
VAR AvahiClient		*DNSSDClient	VALUE(NULL);
Packit 2fc92b
					/* Client information */
Packit 2fc92b
#  endif /* HAVE_DNSSD */
Packit 2fc92b
VAR cupsd_srv_t		WebIFSrv	VALUE(NULL);
Packit 2fc92b
					/* Service reference for the web interface */
Packit 2fc92b
#endif /* HAVE_DNSSD || HAVE_AVAHI */
Packit 2fc92b
Packit 2fc92b
VAR char		*LPDConfigFile	VALUE(NULL),
Packit 2fc92b
					/* LPD configuration file */
Packit 2fc92b
			*SMBConfigFile	VALUE(NULL);
Packit 2fc92b
					/* SMB configuration file */
Packit 2fc92b
Packit 2fc92b
Packit 2fc92b
/*
Packit 2fc92b
 * Prototypes...
Packit 2fc92b
 */
Packit 2fc92b
Packit 2fc92b
extern void	cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit);
Packit 2fc92b
extern void	cupsdRegisterPrinter(cupsd_printer_t *p);
Packit 2fc92b
extern void	cupsdStartBrowsing(void);
Packit 2fc92b
extern void	cupsdStopBrowsing(void);
Packit 2fc92b
#if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
Packit 2fc92b
extern void	cupsdUpdateDNSSDName(void);
Packit 2fc92b
#endif /* HAVE_DNSSD || HAVE_AVAHI */