diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-06 10:12:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-06 10:12:28 -0400 |
commit | e9684405acf5d3bbfa3c2d4f70332cef3c66d553 (patch) | |
tree | 6fb59c7aa83a0f587b20e552e189e3bfade8077f /src/common/util.h | |
parent | d2d7cab5b83e49aba4ae8ecf0aabb9dfcda8d31e (diff) | |
parent | 4edc57caa5c4a7d4d46d30bf0150a7f70e8dcccb (diff) | |
download | tor-e9684405acf5d3bbfa3c2d4f70332cef3c66d553.tar.gz tor-e9684405acf5d3bbfa3c2d4f70332cef3c66d553.zip |
Merge remote-tracking branch 'asn/bug4567_rebased'
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index c059730db6..a6944ac894 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -373,7 +373,8 @@ void write_pidfile(char *filename); /* Port forwarding */ void tor_check_port_forwarding(const char *filename, - int dir_port, int or_port, time_t now); + struct smartlist_t *ports_to_forward, + time_t now); typedef struct process_handle_t process_handle_t; typedef struct process_environment_t process_environment_t; @@ -464,6 +465,16 @@ HANDLE tor_process_get_stdout_pipe(process_handle_t *process_handle); FILE *tor_process_get_stdout_pipe(process_handle_t *process_handle); #endif +#ifdef _WIN32 +struct smartlist_t * +tor_get_lines_from_handle(HANDLE *handle, + enum stream_status *stream_status); +#else +struct smartlist_t * +tor_get_lines_from_handle(FILE *handle, + enum stream_status *stream_status); +#endif + int tor_terminate_process(process_handle_t *process_handle); void tor_process_handle_destroy(process_handle_t *process_handle, int also_terminate_process); |