diff options
author | Tao Bao <tbao@google.com> | 2017-03-28 21:11:11 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-28 21:11:11 +0200 |
commit | 862b7e8523800e638eb1230680c30ebad2f6e5c8 (patch) | |
tree | a917dd3d7eeb25c00acdb7d96a417dd2c13a0288 /applypatch/include/applypatch/imgpatch.h | |
parent | applypatch: Change the ssize_t length parameters to size_t. (diff) | |
parent | Merge changes from topic 'sinkfn' (diff) | |
download | android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar.gz android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar.bz2 android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar.lz android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar.xz android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.tar.zst android_bootable_recovery-862b7e8523800e638eb1230680c30ebad2f6e5c8.zip |
Diffstat (limited to 'applypatch/include/applypatch/imgpatch.h')
-rw-r--r-- | applypatch/include/applypatch/imgpatch.h | 6 |
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 |