diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-25 04:48:11 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-25 04:48:11 +0100 |
commit | 698ede3ce4ab7ff88e5c69b3910544094c7f9814 (patch) | |
tree | d3a7bd1835ecf25e16c35ab658e7d56cc2c69ad2 /src/fastd.h | |
parent | b3ba14d47370e156ef7366954c1160e088e92b49 (diff) | |
download | fastd-698ede3ce4ab7ff88e5c69b3910544094c7f9814.tar fastd-698ede3ce4ab7ff88e5c69b3910544094c7f9814.zip |
Get rid of some duplicate code for calling shell commands
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |