Skip to content

Commit

Permalink
Add extern "C" to libusbmuxd headers
Browse files Browse the repository at this point in the history
  • Loading branch information
marcan committed Jul 1, 2010
1 parent e492ed1 commit 9679eee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libusbmuxd/usbmuxd-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -86,4 +90,8 @@ struct usbmuxd_device_record {
uint32_t location;
} __attribute__((__packed__));

#ifdef __cplusplus
}
#endif

#endif /* __USBMUXD_PROTO_H */
8 changes: 8 additions & 0 deletions libusbmuxd/usbmuxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */

0 comments on commit 9679eee

Please sign in to comment.