summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice-glue/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libimobiledevice-glue/socket.h')
-rw-r--r--include/libimobiledevice-glue/socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libimobiledevice-glue/socket.h b/include/libimobiledevice-glue/socket.h
index 500d382..fbb06da 100644
--- a/include/libimobiledevice-glue/socket.h
+++ b/include/libimobiledevice-glue/socket.h
@@ -43,6 +43,10 @@ typedef enum fd_mode fd_mode;
#include <libimobiledevice-glue/glue.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef _WIN32
LIMD_GLUE_API int socket_create_unix(const char *filename);
LIMD_GLUE_API int socket_connect_unix(const char *filename);
@@ -69,4 +73,8 @@ LIMD_GLUE_API const char *socket_addr_to_string(struct sockaddr *addr, char *add
LIMD_GLUE_API int get_primary_mac_address(unsigned char mac_addr_buf[6]);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SOCKET_SOCKET_H */