summaryrefslogtreecommitdiffstats
path: root/minadbd/fuse_adb_provider.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-11-04 15:33:56 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-11-04 15:33:56 +0100
commitda62ff4218260b29eb3cdd4a4132ff0dc8179471 (patch)
tree404461fed93b4ed91bc778b06e1fd0abffb0ba21 /minadbd/fuse_adb_provider.h
parentMerge "recovery: remove make_ext4fs from updater" am: 3f06512714 (diff)
parentMerge "Clean up fuse_sideload and add a testcase." (diff)
downloadandroid_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar.gz
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar.bz2
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar.lz
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar.xz
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.tar.zst
android_bootable_recovery-da62ff4218260b29eb3cdd4a4132ff0dc8179471.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