diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-12-20 14:36:04 +0100 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2018-12-20 14:36:04 +0100 |
commit | f7e175db57c3c0a0acc2ca424163213544f34633 (patch) | |
tree | 82f307320d9115a5cc58517bc2ec150e1dded088 /src/lib/process/process.h | |
parent | 1c47459e5a5ed6d404a8034502543e7e4a67be38 (diff) | |
download | tor-f7e175db57c3c0a0acc2ca424163213544f34633.tar.gz tor-f7e175db57c3c0a0acc2ca424163213544f34633.zip |
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 (limited to 'src/lib/process/process.h')
-rw-r--r-- | src/lib/process/process.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/process/process.h b/src/lib/process/process.h index 179db19aeb..956d34ab29 100644 --- 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); |