]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/dirsvc.h
Load cups into easysw/current.
[thirdparty/cups.git] / scheduler / dirsvc.h
index ff659e5806f3f3a8434c86d3074dc6883d915545..dea969da5b78c6d074da46859c7b9985ee72d27f 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * "$Id: dirsvc.h 5020 2006-01-28 13:36:15Z mike $"
+ * "$Id: dirsvc.h 6376 2007-03-21 06:39:10Z mike $"
  *
  *   Directory services definitions for the Common UNIX Printing System
  *   (CUPS) scheduler.
  *
- *   Copyright 1997-2005 by Easy Software Products, all rights reserved.
+ *   Copyright 1997-2007 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
 #  include <slp.h>
 #endif /* HAVE_LIBSLP */
 
+#ifdef HAVE_OPENLDAP
+#  ifdef __sun
+#    include <lber.h>
+#  endif /* __sun */
+#  include <ldap.h>
+#endif /* HAVE_OPENLDAP */
 
 /*
  * Browse protocols...
@@ -38,8 +44,8 @@
 
 #define BROWSE_CUPS    1               /* CUPS */
 #define        BROWSE_SLP      2               /* SLPv2 */
-#define BROWSE_LDAP    4               /* LDAP (not supported yet) */
-#define BROWSE_DNSSD   8               /* DNS Service Discovery aka Bonjour */
+#define BROWSE_LDAP    4               /* LDAP */
+#define BROWSE_DNSSD   8               /* DNS Service Discovery (aka Bonjour) */
 #define BROWSE_ALL     15              /* All protocols */
 
 
@@ -99,6 +105,8 @@ VAR int                      Browsing        VALUE(TRUE),
                                        /* Broadcast interval in seconds */
                        BrowseTimeout   VALUE(DEFAULT_TIMEOUT),
                                        /* Time out for printers in seconds */
+                       UseNetworkDefault VALUE(CUPS_DEFAULT_USE_NETWORK_DEFAULT),
+                                       /* Use the network default printer? */
                        NumBrowsers     VALUE(0);
                                        /* Number of broadcast addresses */
 VAR char               *BrowseLocalOptions
@@ -133,31 +141,47 @@ VAR time_t                BrowseSLPRefresh VALUE(0);
                                        /* Next SLP refresh time */
 #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),
+                                       /* LDAP login DN */
+                       *BrowseLDAPDN   VALUE(NULL),
+                                       /* LDAP search DN */
+                       *BrowseLDAPPassword VALUE(NULL),
+                                       /* LDAP login password */
+                       *BrowseLDAPServer VALUE(NULL);
+                                       /* LDAP server to use */
+#endif /* HAVE_LDAP */
+
 
 /*
  * Prototypes...
  */
 
+extern void    cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit);
 extern void    cupsdLoadRemoteCache(void);
-extern void    cupsdProcessBrowseData(const char *uri, cups_ptype_t type,
-                                      ipp_pstate_t state, const char *location,
-                                      const char *info, const char *make_model,
-                                      int num_attrs, cups_option_t *attrs);
-extern void    cupsdProcessImplicitClasses(void);
+extern void    cupsdRegisterPrinter(cupsd_printer_t *p);
+extern void    cupsdRestartPolling(void);
 extern void    cupsdSaveRemoteCache(void);
-extern void    cupsdSendBrowseDelete(cupsd_printer_t *p);
 extern void    cupsdSendBrowseList(void);
-extern void    cupsdSendCUPSBrowse(cupsd_printer_t *p);
-extern void    cupsdSendSLPBrowse(cupsd_printer_t *p);
 extern void    cupsdStartBrowsing(void);
 extern void    cupsdStartPolling(void);
 extern void    cupsdStopBrowsing(void);
 extern void    cupsdStopPolling(void);
-extern void    cupsdUpdateCUPSBrowse(void);
-extern void    cupsdUpdatePolling(void);
+#ifdef HAVE_DNSSD
+extern void    cupsdUpdateDNSSDBrowse(cupsd_printer_t *p);
+#endif /* HAVE_DNSSD */
+#ifdef HAVE_LDAP
+extern void    cupsdUpdateLDAPBrowse(void);
+#endif /* HAVE_LDAP */
 extern void    cupsdUpdateSLPBrowse(void);
 
 
 /*
- * End of "$Id: dirsvc.h 5020 2006-01-28 13:36:15Z mike $".
+ * End of "$Id: dirsvc.h 6376 2007-03-21 06:39:10Z mike $".
  */