diff options
author | Dan Albert <danalbert@google.com> | 2015-02-19 00:04:29 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-19 00:04:29 +0100 |
commit | e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74 (patch) | |
tree | bd37874110062036781167499a93c0d2e178b511 /minadbd/transport.h | |
parent | Initialize stashbase even stash_max_blocks = 0 (diff) | |
parent | am 37e933a7: Merge "Add extern "C" to all the headers." (diff) | |
download | android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.gz android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.bz2 android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.lz android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.xz android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.zst android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.zip |
Diffstat (limited to 'minadbd/transport.h')
-rw-r--r-- | minadbd/transport.h | 9 |
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 */ |