summaryrefslogtreecommitdiffstats
path: root/applypatch/include/applypatch/imgpatch.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-28 21:21:34 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-03-28 21:21:34 +0200
commite003a97668c4bcf4e2382ad38bf6c3e42d4ca131 (patch)
treea22747a3bf083ec38c840dff034d79730b27b4ab /applypatch/include/applypatch/imgpatch.h
parentapplypatch: Change the ssize_t length parameters to size_t. am: f7eb760fe7 am: d4d9ef3941 (diff)
parentMerge changes from topic 'sinkfn' am: 34df98ee6d (diff)
downloadandroid_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar.gz
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar.bz2
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar.lz
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar.xz
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.tar.zst
android_bootable_recovery-e003a97668c4bcf4e2382ad38bf6c3e42d4ca131.zip
Diffstat (limited to 'applypatch/include/applypatch/imgpatch.h')
-rw-r--r--applypatch/include/applypatch/imgpatch.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/applypatch/include/applypatch/imgpatch.h b/applypatch/include/applypatch/imgpatch.h
index 16e4c4f57..07c66094f 100644
--- a/applypatch/include/applypatch/imgpatch.h
+++ b/applypatch/include/applypatch/imgpatch.h
@@ -19,9 +19,11 @@
#include <sys/types.h>
-using SinkFn = size_t (*)(const unsigned char*, size_t, void*);
+#include <functional>
+
+using SinkFn = std::function<size_t(const unsigned char*, size_t)>;
int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const unsigned char* patch_data,
- size_t patch_size, SinkFn sink, void* token);
+ size_t patch_size, SinkFn sink);
#endif // _APPLYPATCH_IMGPATCH_H