tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit f7e175db57c3c0a0acc2ca424163213544f34633
parent 1c47459e5a5ed6d404a8034502543e7e4a67be38
Author: Alexander Færøy <ahf@torproject.org>
Date:   Thu, 20 Dec 2018 14:36:04 +0100

Forward declare smartlist_t in process.h

This allows other libraries to include process.h without including
the smartlist_t headers first.

See: https://bugs.torproject.org/28847

Diffstat:
Msrc/lib/process/process.h | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/lib/process/process.h b/src/lib/process/process.h @@ -47,6 +47,8 @@ const char *process_protocol_to_string(process_protocol_t protocol); void tor_disable_spawning_background_processes(void); +struct smartlist_t; + struct process_t; typedef struct process_t process_t; @@ -61,7 +63,7 @@ typedef bool void process_init(void); void process_free_all(void); -const smartlist_t *process_get_all_processes(void); +const struct smartlist_t *process_get_all_processes(void); process_t *process_new(const char *command); void process_free_(process_t *process); @@ -82,10 +84,11 @@ void process_set_exit_callback(process_t *, const char *process_get_command(const process_t *process); void process_append_argument(process_t *process, const char *argument); -const smartlist_t *process_get_arguments(const process_t *process); +const struct smartlist_t *process_get_arguments(const process_t *process); char **process_get_argv(const process_t *process); -void process_reset_environment(process_t *process, const smartlist_t *env); +void process_reset_environment(process_t *process, + const struct smartlist_t *env); void process_set_environment(process_t *process, const char *key, const char *value);