summaryrefslogtreecommitdiffstats
path: root/fastbootd/utils.h
diff options
context:
space:
mode:
authorSzymon Starzycki <sstar@google.com>2013-09-05 14:26:28 -0700
committerSzymon Starzycki <sstar@google.com>2013-09-27 16:37:25 -0700
commitb015b16c977d2cdf3fe1028c08270833ff428d07 (patch)
tree1904faaf8fcb7aafdf7b847d2fe5821ecb427249 /fastbootd/utils.h
parent4f115c7127037e3729bb64c149df298e269a17a7 (diff)
downloadsystem_core-b015b16c977d2cdf3fe1028c08270833ff428d07.zip
system_core-b015b16c977d2cdf3fe1028c08270833ff428d07.tar.gz
system_core-b015b16c977d2cdf3fe1028c08270833ff428d07.tar.bz2
Fastbootd: socket and network transport
Change-Id: I395e5361d0484bd11421225c152f9aec00305f11
Diffstat (limited to 'fastbootd/utils.h')
-rw-r--r--fastbootd/utils.h3
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)))