summaryrefslogtreecommitdiffstats
path: root/minadbd/fuse_adb_provider.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-11-05 08:25:35 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-11-05 08:25:35 +0100
commitc1a764754f2d5cda88f74c82e3433e60277158ec (patch)
tree404792948fef70fb486d4bf8a28635c26355cc32 /minadbd/fuse_adb_provider.h
parentSnap for 4429796 from efb6a0b7a6d6e68d0213e628b3fa6f31c6b13007 to pi-release (diff)
parentMerge "Clean up fuse_sideload and add a testcase." am: 73dca3e983 am: 6d61e2123b (diff)
downloadandroid_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar.gz
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar.bz2
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar.lz
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar.xz
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.tar.zst
android_bootable_recovery-c1a764754f2d5cda88f74c82e3433e60277158ec.zip
Diffstat (limited to 'minadbd/fuse_adb_provider.h')
-rw-r--r--minadbd/fuse_adb_provider.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/minadbd/fuse_adb_provider.h b/minadbd/fuse_adb_provider.h
index 9941709b9..36d86d539 100644
--- a/minadbd/fuse_adb_provider.h
+++ b/minadbd/fuse_adb_provider.h
@@ -20,13 +20,13 @@
#include <stdint.h>
struct adb_data {
- int sfd; // file descriptor for the adb channel
+ int sfd; // file descriptor for the adb channel
- uint64_t file_size;
- uint32_t block_size;
+ uint64_t file_size;
+ uint32_t block_size;
};
-int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
+int read_block_adb(const adb_data& ad, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size);
#endif