aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/socket.h')
-rw-r--r--wsutil/socket.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/wsutil/socket.h b/wsutil/socket.h
index ca30d807c2..7d99d7cf67 100644
--- a/wsutil/socket.h
+++ b/wsutil/socket.h
@@ -12,6 +12,8 @@
#ifndef __SOCKET_H__
#define __SOCKET_H__
+#include "ws_symbol_export.h"
+
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <windows.h>
#include <ws2tcpip.h>
@@ -48,6 +50,26 @@
#endif /* __SOCKET_H__ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Initialize sockets.
+ *
+ * Returns NULL on success, a g_malloc()ed error message on failure.
+ */
+WS_DLL_PUBLIC gchar *ws_init_sockets(void);
+
+/*
+ * Clean up sockets.
+ */
+WS_DLL_PUBLIC void ws_cleanup_sockets(void);
+
+#ifdef __cplusplus
+}
+#endif
+
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*