From 6ea339379890fa1f99e802cac4f705b96ffcff8d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 24 Feb 2010 12:43:45 +0100 Subject: lib/util: change samba_runcmd() to use tevent_req _send/_recv metze --- lib/util/util.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lib/util/util.h') diff --git a/lib/util/util.h b/lib/util/util.h index 264396efe6..e1160d5a3e 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -890,12 +890,13 @@ bool add_gid_to_array_unique(TALLOC_CTX *mem_ctx, gid_t gid, with the return code from the command */ struct tevent_context; -struct composite_context *samba_runcmd(struct tevent_context *ev, - TALLOC_CTX *mem_ctx, - struct timeval timeout, - int stdout_log_level, - int stderr_log_level, - const char **argv0, ...); - +struct tevent_req; +struct tevent_req *samba_runcmd_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct timeval endtime, + int stdout_log_level, + int stderr_log_level, + const char * const *argv0, ...); +int samba_runcmd_recv(struct tevent_req *req, int *perrno); #endif /* _SAMBA_UTIL_H_ */ -- cgit