diff options
Diffstat (limited to 'libusbmuxd')
| -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 | |||
| 34 | #define USBMUXD_SOCKET_FILE "/var/run/usbmuxd" | 34 | #define USBMUXD_SOCKET_FILE "/var/run/usbmuxd" |
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | #ifdef __cplusplus | ||
| 38 | extern "C" { | ||
| 39 | #endif | ||
| 40 | |||
| 37 | enum usbmuxd_result { | 41 | enum usbmuxd_result { |
| 38 | RESULT_OK = 0, | 42 | RESULT_OK = 0, |
| 39 | RESULT_BADCOMMAND = 1, | 43 | RESULT_BADCOMMAND = 1, |
| @@ -86,4 +90,8 @@ struct usbmuxd_device_record { | |||
| 86 | uint32_t location; | 90 | uint32_t location; |
| 87 | } __attribute__((__packed__)); | 91 | } __attribute__((__packed__)); |
| 88 | 92 | ||
| 93 | #ifdef __cplusplus | ||
| 94 | } | ||
| 95 | #endif | ||
| 96 | |||
| 89 | #endif /* __USBMUXD_PROTO_H */ | 97 | #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 | |||
| 25 | #define __USBMUXD_H | 25 | #define __USBMUXD_H |
| 26 | #include <stdint.h> | 26 | #include <stdint.h> |
| 27 | 27 | ||
| 28 | #ifdef __cplusplus | ||
| 29 | extern "C" { | ||
| 30 | #endif | ||
| 31 | |||
| 28 | /** | 32 | /** |
| 29 | * Device information structure holding data to identify the device. | 33 | * Device information structure holding data to identify the device. |
| 30 | * The relevant 'handle' should be passed to 'usbmuxd_connect()', to | 34 | * 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 | |||
| 170 | */ | 174 | */ |
| 171 | int usbmuxd_recv(int sfd, char *data, uint32_t len, uint32_t *recv_bytes); | 175 | int usbmuxd_recv(int sfd, char *data, uint32_t len, uint32_t *recv_bytes); |
| 172 | 176 | ||
| 177 | #ifdef __cplusplus | ||
| 178 | } | ||
| 179 | #endif | ||
| 180 | |||
| 173 | #endif /* __USBMUXD_H */ | 181 | #endif /* __USBMUXD_H */ |
