Allow a parameter to smb_thread_once's initialization function
[jra/samba/.git] / lib / util / smb_threads.h
index 5079b17c6d2c0c879a111ee3c27cf35f2f9869c4..809673ab544b245afe6c653061862525decab4a7 100644 (file)
@@ -52,7 +52,9 @@ struct smb_thread_functions {
 };
 
 int smb_thread_set_functions(const struct smb_thread_functions *tf);
-int smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void));
+int smb_thread_once(smb_thread_once_t *ponce,
+                    void (*init_fn)(void *pdata),
+                    void *pdata);
 
 extern const struct smb_thread_functions *global_tfp;