]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/dirsvc.h
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / scheduler / dirsvc.h
index 951407efe90044c9df63cfdcf20caab196ba91ac..edb60e0aa545966f7ae477f31dabb6ddf1f8f6b9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: dirsvc.h 5031 2006-01-31 03:05:32Z mike $"
+ * "$Id: dirsvc.h 177 2006-06-21 00:20:03Z jlovell $"
  *
  *   Directory services definitions for the Common UNIX Printing System
  *   (CUPS) scheduler.
 #  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,7 +44,7 @@
 
 #define BROWSE_CUPS    1               /* CUPS */
 #define        BROWSE_SLP      2               /* SLPv2 */
-#define BROWSE_LDAP    4               /* LDAP (not supported yet) */
+#define BROWSE_LDAP    4               /* LDAP */
 #define BROWSE_DNSSD   8               /* DNS Service Discovery aka Bonjour */
 #define BROWSE_ALL     15              /* All protocols */
 
@@ -135,6 +141,23 @@ 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...
@@ -144,17 +167,18 @@ extern void       cupsdLoadRemoteCache(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);
+#ifdef HAVE_LDAP
+extern void    cupsdUpdateLDAPBrowse(void);
+#endif /* HAVE_LDAP */
 extern void    cupsdUpdatePolling(void);
 extern void    cupsdUpdateSLPBrowse(void);
 
 
 /*
- * End of "$Id: dirsvc.h 5031 2006-01-31 03:05:32Z mike $".
+ * End of "$Id: dirsvc.h 177 2006-06-21 00:20:03Z jlovell $".
  */