diff options
author | Szymon Starzycki <sstar@google.com> | 2013-09-05 14:26:28 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-12-04 15:00:52 -0800 |
commit | 2a656c332b792c84fa6e96d8b40e2c8c0fe94ef9 (patch) | |
tree | 01dd953573860354316663eea20f563fc7e4130b /fastbootd/utils.h | |
parent | 00f4e937300b09342983614e792668c269cd7fde (diff) | |
download | system_core-2a656c332b792c84fa6e96d8b40e2c8c0fe94ef9.zip system_core-2a656c332b792c84fa6e96d8b40e2c8c0fe94ef9.tar.gz system_core-2a656c332b792c84fa6e96d8b40e2c8c0fe94ef9.tar.bz2 |
Fastbootd: socket and network transport
Change-Id: I395e5361d0484bd11421225c152f9aec00305f11
Diffstat (limited to 'fastbootd/utils.h')
-rw-r--r-- | fastbootd/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fastbootd/utils.h b/fastbootd/utils.h index a553a25..c714786 100644 --- a/fastbootd/utils.h +++ b/fastbootd/utils.h @@ -42,6 +42,9 @@ uint64_t get_file_size64(int fd); uint64_t get_file_size(int fd); uint64_t get_block_device_size(int fd); int wipe_block_device(int fd, int64_t len); +int create_temp_file(); +ssize_t bulk_read(int bulk_out, char *buf, size_t length); +ssize_t bulk_write(int bulk_in, const char *buf, size_t length); #define ROUND_TO_PAGE(address,pagesize) ((address + pagesize - 1) & (~(pagesize - 1))) |