summaryrefslogtreecommitdiff
path: root/adb_client.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-18 00:18:25 -0800
committerDan Albert <danalbert@google.com>2015-02-18 00:21:16 -0800
commit4fc758b73cc7f6f90f77f8918a91ee9c22ba35d8 (patch)
treebc9dc748c41f02c456cc5e3935adddd6993a3929 /adb_client.h
parent875339d9c356b2e335c99994bdce8540b01bfcd3 (diff)
downloadadb-4fc758b73cc7f6f90f77f8918a91ee9c22ba35d8.tar.gz
Add extern "C" to all the adb headers.
Change-Id: Iaefa3e18d6ee2e065eb97271a796613b2a8e7d6e
Diffstat (limited to 'adb_client.h')
-rw-r--r--adb_client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/adb_client.h b/adb_client.h
index 0ec47ca..6ba3b38 100644
--- a/adb_client.h
+++ b/adb_client.h
@@ -3,6 +3,10 @@
#include "adb.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* connect to adb, connect to the named service, and return
** a valid fd for interacting with that service upon success
** or a negative number on failure
@@ -54,4 +58,8 @@ const char *adb_error(void);
*/
int adb_status(int fd);
+#ifdef __cplusplus
+}
+#endif
+
#endif