Move wbc global variables into global context instead
[samba.git] / nsswitch / libwbclient / wbclient_internal.h
index becddacdf82654b9ef42386dc9c5045ee888ed43..6d815c033dd1053a55ce0de566cf61c60facbd5e 100644 (file)
 
 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 */
@@ -41,5 +45,6 @@ void *wbcAllocateMemory(size_t nelem, size_t elsize,
 
 char *wbcStrDup(const char *str);
 const char **wbcAllocateStringArray(int num_strings);
+struct wbcContext *wbcGetGlobalCtx(void);
 
 #endif      /* _WBCLIENT_INTERNAL_H */