winbindd: winbindd_ccache_ntlm_auth() -> bool_dispatch_table
[samba.git] / nsswitch / libwbclient / wbclient_internal.h
index 78178cbafe92b03c9619fdbeea6e1bd3545ef741..6d815c033dd1053a55ce0de566cf61c60facbd5e 100644 (file)
 #ifndef _WBCLIENT_INTERNAL_H
 #define _WBCLIENT_INTERNAL_H
 
+struct wbcContext {
+       struct winbindd_context *winbindd_ctx;
+       uint32_t pw_cache_size; /* Number of cached passwd structs */
+       uint32_t pw_cache_idx;  /* Position of the pwent context */
+       uint32_t gr_cache_size; /* Number of cached group structs */
+       uint32_t gr_cache_idx;  /* Position of the grent context */
+};
+
 /* Private functions */
 
-wbcErr wbcRequestResponse(int cmd,
+wbcErr wbcRequestResponse(struct wbcContext *ctx, int cmd,
                          struct winbindd_request *request,
                          struct winbindd_response *response);
 
-wbcErr wbcRequestResponsePriv(int cmd,
+wbcErr wbcRequestResponsePriv(struct wbcContext *ctx, int cmd,
                              struct winbindd_request *request,
                              struct winbindd_response *response);
 
@@ -36,5 +44,7 @@ void *wbcAllocateMemory(size_t nelem, size_t elsize,
                        void (*destructor)(void *ptr));
 
 char *wbcStrDup(const char *str);
+const char **wbcAllocateStringArray(int num_strings);
+struct wbcContext *wbcGetGlobalCtx(void);
 
 #endif      /* _WBCLIENT_INTERNAL_H */