s3-libsmbclient: Add smbc_setOptionUseCCache()
[abartlet/samba.git/.git] / source3 / include / libsmbclient.h
index 3b38b30c32f68a6f8b9dc850f033a4b09800a7f8..dd6f93e261e8d8e00872f4d059538bd8ae4dcd72 100644 (file)
@@ -263,10 +263,13 @@ typedef struct _SMBCCTX SMBCCTX;
  *   smbc_getOptionFallbackAFterKerberos()
  *   smbc_setOptionNoAutoAnonymousLogin()
  *   smbc_getOptionNoAutoAnonymousLogin()
+ *   smbc_setOptionUseCCache()
+ *   smbc_getOptionUseCCache()
  */
 # define SMB_CTX_FLAG_USE_KERBEROS (1 << 0)
 # define SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS (1 << 1)
 # define SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON (1 << 2)
+# define SMB_CTX_FLAG_USE_CCACHE (1 << 3)
 
 
 
@@ -732,6 +735,14 @@ smbc_getOptionNoAutoAnonymousLogin(SMBCCTX *c);
 void
 smbc_setOptionNoAutoAnonymousLogin(SMBCCTX *c, smbc_bool b);
 
+/** Get whether to enable use of the winbind ccache */
+smbc_bool
+smbc_getOptionUseCCache(SMBCCTX *c);
+
+/** Set whether to enable use of the winbind ccache */
+void
+smbc_setOptionUseCCache(SMBCCTX *c, smbc_bool b);
+
 
 
 /*************************************
@@ -2783,24 +2794,24 @@ smbc_thread_impl(
         /* Mutex functions. */
         int (*create_mutex)(const char *lockname,
                             void **pplock,
-                            const char *location);
+                            const char *location),
         void (*destroy_mutex)(void *plock,
-                              const char *location);
+                              const char *location),
         int (*lock_mutex)(void *plock,
                           int lock_type,
-                          const char *location);
+                          const char *location),
     
         /* Thread local storage. */
         int (*create_tls)(const char *keyname,
                           void **ppkey,
-                          const char *location);
+                          const char *location),
         void (*destroy_tls)(void **ppkey,
-                            const char *location);
+                            const char *location),
         int (*set_tls)(void *pkey,
                        const void *pval,
-                       const char *location);
+                       const char *location),
         void *(*get_tls)(void *pkey,
-                         const char *location);
+                         const char *location)
         );