summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/usbmuxd-proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/usbmuxd-proto.h')
-rw-r--r--libusbmuxd/usbmuxd-proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libusbmuxd/usbmuxd-proto.h b/libusbmuxd/usbmuxd-proto.h
index 390cd3d..be9e709 100644
--- a/libusbmuxd/usbmuxd-proto.h
+++ b/libusbmuxd/usbmuxd-proto.h
@@ -34,6 +34,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#define USBMUXD_SOCKET_FILE "/var/run/usbmuxd"
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum usbmuxd_result {
RESULT_OK = 0,
RESULT_BADCOMMAND = 1,
@@ -86,4 +90,8 @@ struct usbmuxd_device_record {
uint32_t location;
} __attribute__((__packed__));
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __USBMUXD_PROTO_H */