Loading libs/androidfw/ApkAssets.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ using base::unique_fd; static const std::string kResourcesArsc("resources.arsc"); static const std::string kResourcesArsc("resources.arsc"); ApkAssets::ApkAssets(void* unmanaged_handle, const std::string& path) ApkAssets::ApkAssets(ZipArchiveHandle unmanaged_handle, const std::string& path) : zip_handle_(unmanaged_handle, ::CloseArchive), path_(path) { : zip_handle_(unmanaged_handle, ::CloseArchive), path_(path) { } } Loading libs/androidfw/include/androidfw/ApkAssets.h +5 −2 Original line number Original line Diff line number Diff line Loading @@ -27,6 +27,9 @@ #include "androidfw/LoadedArsc.h" #include "androidfw/LoadedArsc.h" #include "androidfw/misc.h" #include "androidfw/misc.h" struct ZipArchive; typedef ZipArchive* ZipArchiveHandle; namespace android { namespace android { class LoadedIdmap; class LoadedIdmap; Loading Loading @@ -88,9 +91,9 @@ class ApkAssets { // Creates an Asset from any file on the file system. // Creates an Asset from any file on the file system. static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); ApkAssets(void* unmanaged_handle, const std::string& path); ApkAssets(ZipArchiveHandle unmanaged_handle, const std::string& path); using ZipArchivePtr = std::unique_ptr<void, void(*)(void*)>; using ZipArchivePtr = std::unique_ptr<ZipArchive, void(*)(ZipArchiveHandle)>; ZipArchivePtr zip_handle_; ZipArchivePtr zip_handle_; const std::string path_; const std::string path_; Loading libs/androidfw/include/androidfw/ZipFileRO.h +2 −1 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,8 @@ #include <unistd.h> #include <unistd.h> #include <time.h> #include <time.h> typedef void* ZipArchiveHandle; struct ZipArchive; typedef ZipArchive* ZipArchiveHandle; namespace android { namespace android { Loading Loading
libs/androidfw/ApkAssets.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ using base::unique_fd; static const std::string kResourcesArsc("resources.arsc"); static const std::string kResourcesArsc("resources.arsc"); ApkAssets::ApkAssets(void* unmanaged_handle, const std::string& path) ApkAssets::ApkAssets(ZipArchiveHandle unmanaged_handle, const std::string& path) : zip_handle_(unmanaged_handle, ::CloseArchive), path_(path) { : zip_handle_(unmanaged_handle, ::CloseArchive), path_(path) { } } Loading
libs/androidfw/include/androidfw/ApkAssets.h +5 −2 Original line number Original line Diff line number Diff line Loading @@ -27,6 +27,9 @@ #include "androidfw/LoadedArsc.h" #include "androidfw/LoadedArsc.h" #include "androidfw/misc.h" #include "androidfw/misc.h" struct ZipArchive; typedef ZipArchive* ZipArchiveHandle; namespace android { namespace android { class LoadedIdmap; class LoadedIdmap; Loading Loading @@ -88,9 +91,9 @@ class ApkAssets { // Creates an Asset from any file on the file system. // Creates an Asset from any file on the file system. static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); ApkAssets(void* unmanaged_handle, const std::string& path); ApkAssets(ZipArchiveHandle unmanaged_handle, const std::string& path); using ZipArchivePtr = std::unique_ptr<void, void(*)(void*)>; using ZipArchivePtr = std::unique_ptr<ZipArchive, void(*)(ZipArchiveHandle)>; ZipArchivePtr zip_handle_; ZipArchivePtr zip_handle_; const std::string path_; const std::string path_; Loading
libs/androidfw/include/androidfw/ZipFileRO.h +2 −1 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,8 @@ #include <unistd.h> #include <unistd.h> #include <time.h> #include <time.h> typedef void* ZipArchiveHandle; struct ZipArchive; typedef ZipArchive* ZipArchiveHandle; namespace android { namespace android { Loading