aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/socket-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/socket-helpers.h')
-rw-r--r--tests/unit/socket-helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/socket-helpers.h b/tests/unit/socket-helpers.h
index 512a004811..ed8477ceb3 100644
--- a/tests/unit/socket-helpers.h
+++ b/tests/unit/socket-helpers.h
@@ -32,4 +32,13 @@
*/
int socket_check_protocol_support(bool *has_ipv4, bool *has_ipv6);
+/*
+ * @has_afunix: set to true on return if unix socket support is available
+ *
+ * Check whether unix domain socket support is available for use.
+ * On success, @has_afunix will be set to indicate whether AF_UNIX protocol
+ * is available.
+ */
+void socket_check_afunix_support(bool *has_afunix);
+
#endif