]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/dirsvc.h
Merge changes from CUPS 1.5svn-r9641
[thirdparty/cups.git] / scheduler / dirsvc.h
index 5ff06c3eea2e36351df95ca44d7fbd39ee314cd6..933a057ba5cc615006a27cf11f339ddd8ee6d882 100644 (file)
@@ -1,10 +1,9 @@
 /*
- * "$Id: dirsvc.h 6930 2007-09-08 00:28:06Z mike $"
+ * "$Id: dirsvc.h 7933 2008-09-11 00:44:58Z mike $"
  *
- *   Directory services definitions for the Common UNIX Printing System
- *   (CUPS) scheduler.
+ *   Directory services definitions for the CUPS scheduler.
  *
- *   Copyright 2007 by Apple Inc.
+ *   Copyright 2007-2010 by Apple Inc.
  *   Copyright 1997-2007 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
 #  include <slp.h>
 #endif /* HAVE_LIBSLP */
 
-#ifdef HAVE_OPENLDAP
+#ifdef HAVE_LDAP
 #  ifdef __sun
 #    include <lber.h>
 #  endif /* __sun */
 #  include <ldap.h>
-#endif /* HAVE_OPENLDAP */
+#  ifdef HAVE_LDAP_SSL_H
+#    include <ldap_ssl.h>
+#  endif /* HAVE_LDAP_SSL_H */
+#endif /* HAVE_LDAP */
 
 /*
  * Browse protocols...
@@ -59,7 +61,7 @@ typedef struct
 
 typedef struct
 {
-  cupsd_authmask_t     from;           /* Source address/name mask */
+  cups_array_t         *from;          /* Source address/name mask(s) */
   http_addr_t          to;             /* Destination address */
 } cupsd_dirsvc_relay_t;
 
@@ -82,6 +84,8 @@ typedef struct
 
 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 */
@@ -127,6 +131,27 @@ VAR int                    PollPipe        VALUE(0);
 VAR cupsd_statbuf_t    *PollStatusBuffer VALUE(NULL);
                                        /* Status buffer for pollers */
 
+#ifdef HAVE_DNSSD
+VAR char               *DNSSDComputerName VALUE(NULL),
+                                       /* Computer/server name */
+                       *DNSSDHostName  VALUE(NULL),
+                                       /* Hostname */
+                       *DNSSDRegType VALUE(NULL);
+                                       /* Bonjour registration type */
+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 */
+VAR DNSServiceRef      DNSSDRef        VALUE(NULL),
+                                       /* Master DNS-SD service reference */
+                       WebIFRef        VALUE(NULL),
+                                       /* Service reference for the web interface */
+                       RemoteRef       VALUE(NULL);
+                                       /* Remote printer browse reference */
+#endif /* HAVE_DNSSD */
+
 #ifdef HAVE_LIBSLP
 VAR SLPHandle          BrowseSLPHandle VALUE(NULL);
                                        /* SLP API handle */
@@ -135,10 +160,8 @@ VAR time_t         BrowseSLPRefresh VALUE(0);
 #endif /* HAVE_LIBSLP */
 
 #ifdef HAVE_LDAP
-#  ifdef HAVE_OPENLDAP
 VAR LDAP               *BrowseLDAPHandle VALUE(NULL);
                                        /* Handle to LDAP server */
-#  endif /* HAVE_OPENLDAP */
 VAR time_t             BrowseLDAPRefresh VALUE(0);
                                        /* Next LDAP refresh time */
 VAR char               *BrowseLDAPBindDN VALUE(NULL),
@@ -147,10 +170,14 @@ VAR char          *BrowseLDAPBindDN VALUE(NULL),
                                        /* LDAP search DN */
                        *BrowseLDAPPassword VALUE(NULL),
                                        /* LDAP login password */
-                       *BrowseLDAPServer VALUE(NULL),
+                       *BrowseLDAPServer VALUE(NULL);
                                        /* LDAP server to use */
-                       *BrowseLDAPCACertFile VALUE(NULL);
+VAR int                        BrowseLDAPUpdate VALUE(TRUE);
+                                       /* enables LDAP updates */
+#  ifdef HAVE_LDAP_SSL
+VAR char               *BrowseLDAPCACertFile VALUE(NULL);
                                        /* LDAP CA CERT file to use */
+#  endif /* HAVE_LDAP_SSL */
 #endif /* HAVE_LDAP */
 VAR char               *LPDConfigFile  VALUE(NULL),
                                        /* LPD configuration file */
@@ -173,7 +200,7 @@ extern void cupsdStartPolling(void);
 extern void    cupsdStopBrowsing(void);
 extern void    cupsdStopPolling(void);
 #ifdef HAVE_DNSSD
-extern void    cupsdUpdateDNSSDBrowse(cupsd_printer_t *p);
+extern void    cupsdUpdateDNSSDName(void);
 #endif /* HAVE_DNSSD */
 #ifdef HAVE_LDAP
 extern void    cupsdUpdateLDAPBrowse(void);
@@ -182,5 +209,5 @@ extern void cupsdUpdateSLPBrowse(void);
 
 
 /*
- * End of "$Id: dirsvc.h 6930 2007-09-08 00:28:06Z mike $".
+ * End of "$Id: dirsvc.h 7933 2008-09-11 00:44:58Z mike $".
  */