diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-25 14:31:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-14 11:05:56 -0500 |
commit | c51f7c23e3af71466f9bd2ae57ae7a2b998ee3e2 (patch) | |
tree | b146849ad5003a3397063482bbca8054b5ce50ef /src/common/compat_threads.h | |
parent | 3868b5d210f8bccbfb88464f62089447cb3330ed (diff) | |
download | tor-c51f7c23e3af71466f9bd2ae57ae7a2b998ee3e2.tar.gz tor-c51f7c23e3af71466f9bd2ae57ae7a2b998ee3e2.zip |
Test a little more of compat_threads.c
Diffstat (limited to 'src/common/compat_threads.h')
-rw-r--r-- | src/common/compat_threads.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/compat_threads.h b/src/common/compat_threads.h index 245df76178..1b59391d3b 100644 --- a/src/common/compat_threads.h +++ b/src/common/compat_threads.h @@ -102,7 +102,14 @@ typedef struct alert_sockets_s { int (*drain_fn)(tor_socket_t read_fd); } alert_sockets_t; -int alert_sockets_create(alert_sockets_t *socks_out); +/* Flags to disable one or more alert_sockets backends. */ +#define ASOCKS_NOEVENTFD2 (1u<<0) +#define ASOCKS_NOEVENTFD (1u<<1) +#define ASOCKS_NOPIPE2 (1u<<2) +#define ASOCKS_NOPIPE (1u<<3) +#define ASOCKS_NOSOCKETPAIR (1u<<4) + +int alert_sockets_create(alert_sockets_t *socks_out, uint32_t flags); void alert_sockets_close(alert_sockets_t *socks); #endif |