From 698ede3ce4ab7ff88e5c69b3910544094c7f9814 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 25 Feb 2013 04:48:11 +0100 Subject: Get rid of some duplicate code for calling shell commands --- src/fastd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index 8b6eb7e..731ee8c 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -327,6 +327,8 @@ void fastd_reconfigure(fastd_context_t *ctx, fastd_config_t *conf); void fastd_cap_init(fastd_context_t *ctx); void fastd_cap_drop(fastd_context_t *ctx); +bool fastd_shell_exec(fastd_context_t *ctx, const fastd_peer_t *peer, const char *command, const char *dir, int *ret); + void fastd_random_bytes(fastd_context_t *ctx, void *buffer, size_t len, bool secure); static inline int fastd_rand(fastd_context_t *ctx, int min, int max) { -- cgit v1.2.3