summaryrefslogtreecommitdiffstats
path: root/minadbd/transport.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-18 23:57:06 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-18 23:57:06 +0100
commitecb0ad25c6be87570f31b652c24ff7f17a93813f (patch)
tree5cfb9d0bb8f07baf70bcc0094a19c232434f239a /minadbd/transport.h
parentam ff934d02: Merge "Fix Droid and animation color in recovery mode" (diff)
parentMerge "Add extern "C" to all the headers." (diff)
downloadandroid_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar.gz
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar.bz2
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar.lz
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar.xz
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.tar.zst
android_bootable_recovery-ecb0ad25c6be87570f31b652c24ff7f17a93813f.zip
Diffstat (limited to 'minadbd/transport.h')
-rw-r--r--minadbd/transport.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/minadbd/transport.h b/minadbd/transport.h
index 992e05285..c1b8ff34f 100644
--- a/minadbd/transport.h
+++ b/minadbd/transport.h
@@ -17,10 +17,19 @@
#ifndef __TRANSPORT_H
#define __TRANSPORT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* convenience wrappers around read/write that will retry on
** EINTR and/or short read/write. Returns 0 on success, -1
** on error or EOF.
*/
int readx(int fd, void *ptr, size_t len);
int writex(int fd, const void *ptr, size_t len);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __TRANSPORT_H */