Add infrastructure to transfer winbindd_request/response asynchronously
[kai/samba.git] / source3 / winbindd / winbindd_proto.h
index 9de385e3b3c5d2cb6246c18a9b7d490f637f59de..3869ac57712b6c7423bf3a5bc67a40fad0be5ba8 100644 (file)
@@ -67,6 +67,27 @@ void winbind_check_sighup(const char *lfile);
 void winbind_check_sigterm(bool in_parent);
 int main(int argc, char **argv, char **envp);
 
+/* The following definitions come from winbindd/winbindd_reqtrans.c  */
+
+struct async_req *wb_req_read_send(TALLOC_CTX *mem_ctx,
+                                  struct event_context *ev,
+                                  int fd, size_t max_extra_data);
+NTSTATUS wb_req_read_recv(struct async_req *req, TALLOC_CTX *mem_ctx,
+                         struct winbindd_request **preq);
+struct async_req *wb_req_write_send(TALLOC_CTX *mem_ctx,
+                                   struct event_context *ev, int fd,
+                                   struct winbindd_request *wb_req);
+NTSTATUS wb_req_write_recv(struct async_req *req);
+
+struct async_req *wb_resp_read_send(TALLOC_CTX *mem_ctx,
+                                   struct event_context *ev, int fd);
+NTSTATUS wb_resp_read_recv(struct async_req *req, TALLOC_CTX *mem_ctx,
+                          struct winbindd_response **presp);
+struct async_req *wb_resp_write_send(TALLOC_CTX *mem_ctx,
+                                    struct event_context *ev, int fd,
+                                    struct winbindd_response *wb_resp);
+NTSTATUS wb_resp_write_recv(struct async_req *req);
+
 /* The following definitions come from winbindd/winbindd_ads.c  */