diff options
author | Hector Martin | 2010-07-01 20:33:22 +0200 |
---|---|---|
committer | Hector Martin | 2010-07-01 20:33:22 +0200 |
commit | 9679eeea4c0071b911f7591a09e8667086e447db (patch) | |
tree | 37800623d197a188cf018572dab368ec55da7ec1 | |
parent | e492ed1d13b51f95b3b96e54d2c3d9076a1910b4 (diff) | |
download | usbmuxd-9679eeea4c0071b911f7591a09e8667086e447db.tar.gz usbmuxd-9679eeea4c0071b911f7591a09e8667086e447db.tar.bz2 |
Add extern "C" to libusbmuxd headersv1.0.5
-rw-r--r-- | libusbmuxd/usbmuxd-proto.h | 8 | ||||
-rw-r--r-- | libusbmuxd/usbmuxd.h | 8 |
2 files changed, 16 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 */ diff --git a/libusbmuxd/usbmuxd.h b/libusbmuxd/usbmuxd.h index 1bbf478..eabd216 100644 --- a/libusbmuxd/usbmuxd.h +++ b/libusbmuxd/usbmuxd.h @@ -25,6 +25,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #define __USBMUXD_H #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + /** * Device information structure holding data to identify the device. * The relevant 'handle' should be passed to 'usbmuxd_connect()', to @@ -170,4 +174,8 @@ int usbmuxd_recv_timeout(int sfd, char *data, uint32_t len, uint32_t *recv_bytes */ int usbmuxd_recv(int sfd, char *data, uint32_t len, uint32_t *recv_bytes); +#ifdef __cplusplus +} +#endif + #endif /* __USBMUXD_H */ |