aboutsummaryrefslogtreecommitdiffstats
path: root/src/server_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server_socket.h')
-rw-r--r--src/server_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server_socket.h b/src/server_socket.h
index f7e9aa4cf..5dc684013 100644
--- a/src/server_socket.h
+++ b/src/server_socket.h
@@ -32,6 +32,10 @@ typedef void (*server_socket_callback_t)(int fd,
size_t address_length, int uid,
void *ctx);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct server_socket *
server_socket_new(server_socket_callback_t callback, void *callback_ctx);
@@ -90,4 +94,8 @@ bool
server_socket_add_path(struct server_socket *ss, const char *path,
GError **error_r);
+#ifdef __cplusplus
+}
+#endif
+
#endif