aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 13:12:22 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 07:30:35 -0500
commit774d1092fd08bf8d0fc0948a13c81c0b572d8b31 (patch)
tree0386e1a9018a3a0412d8888120897305d404588a
parentdd5dda78f66c6ab6708cbac898c9f6a2d21162ef (diff)
downloadtor-774d1092fd08bf8d0fc0948a13c81c0b572d8b31.tar.gz
tor-774d1092fd08bf8d0fc0948a13c81c0b572d8b31.zip
process.h: add a struct declaration for buf_t.
This lets us avoid a dependency on include order.
-rw-r--r--src/lib/process/process.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/process/process.h b/src/lib/process/process.h
index b28f55e0a1..d0a66c490a 100644
--- a/src/lib/process/process.h
+++ b/src/lib/process/process.h
@@ -127,18 +127,19 @@ void process_notify_event_exit(process_t *process,
process_exit_code_t);
#ifdef PROCESS_PRIVATE
-MOCK_DECL(STATIC int, process_read_stdout, (process_t *, buf_t *));
-MOCK_DECL(STATIC int, process_read_stderr, (process_t *, buf_t *));
-MOCK_DECL(STATIC void, process_write_stdin, (process_t *, buf_t *));
+struct buf_t;
+MOCK_DECL(STATIC int, process_read_stdout, (process_t *, struct buf_t *));
+MOCK_DECL(STATIC int, process_read_stderr, (process_t *, struct buf_t *));
+MOCK_DECL(STATIC void, process_write_stdin, (process_t *, struct buf_t *));
STATIC void process_read_data(process_t *process,
- buf_t *buffer,
+ struct buf_t *buffer,
process_read_callback_t callback);
STATIC void process_read_buffer(process_t *process,
- buf_t *buffer,
+ struct buf_t *buffer,
process_read_callback_t callback);
STATIC void process_read_lines(process_t *process,
- buf_t *buffer,
+ struct buf_t *buffer,
process_read_callback_t callback);
#endif /* defined(PROCESS_PRIVATE) */