summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-24 12:43:45 +0100
committerAndrew Tridgell <tridge@samba.org>2010-03-09 21:49:45 +1100
commit6ea339379890fa1f99e802cac4f705b96ffcff8d (patch)
tree8cbf320cc8912465ec13e93ca0d45fce897e699b /lib/util/util.h
parent56b13ee8edfa434cbca69af17aeea58cc5502b40 (diff)
downloadsamba-6ea339379890fa1f99e802cac4f705b96ffcff8d.tar.gz
samba-6ea339379890fa1f99e802cac4f705b96ffcff8d.tar.bz2
samba-6ea339379890fa1f99e802cac4f705b96ffcff8d.zip
lib/util: change samba_runcmd() to use tevent_req _send/_recv
metze
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h15
1 files changed, 8 insertions, 7 deletions
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_ */