Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 559dbd88 authored by Ryan Prichard's avatar Ryan Prichard Committed by android-build-merger
Browse files

Merge "Change ZipArchiveHandle from void* to ZipArchive*" am: f79542ef am: a34a1e0c

am: 49835767

Change-Id: I4fe5a70c750328bb67cdc02a08e4f9eeb97ac20d
parents 482e8570 49835767
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {
}
}


+5 −2
Original line number Original line Diff line number Diff line
@@ -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;
@@ -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_;
+2 −1
Original line number Original line Diff line number Diff line
@@ -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 {