X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/c8e46fb04e626b26511095db9e6b4fe68eb74b35..0150a07c6a9b14de684d129d369ac995f7b3f4b3:/AaptAssets.h diff --git a/AaptAssets.h b/AaptAssets.h index 65743d8..a1c7c40 100644 --- a/AaptAssets.h +++ b/AaptAssets.h @@ -140,6 +140,7 @@ inline int strictly_order_type(const AaptGroupEntry& lhs, const AaptGroupEntry& } class AaptGroup; +class FilePathStore; /** * A single asset file we know about. @@ -269,7 +270,8 @@ public: virtual ssize_t slurpFullTree(Bundle* bundle, const String8& srcDir, const AaptGroupEntry& kind, - const String8& resType); + const String8& resType, + sp& fullResPaths); /* * Perform some sanity checks on the names of files and directories here. @@ -484,6 +486,14 @@ public: ResourceTypeSet(); }; +// Storage for lists of fully qualified paths for +// resources encountered during slurping. +class FilePathStore : public RefBase, + public Vector +{ +public: + FilePathStore(); +}; /** * Asset hierarchy being operated on. @@ -517,7 +527,8 @@ public: virtual ssize_t slurpFullTree(Bundle* bundle, const String8& srcDir, const AaptGroupEntry& kind, - const String8& resType); + const String8& resType, + sp& fullResPaths); ssize_t slurpResourceTree(Bundle* bundle, const String8& srcDir); ssize_t slurpResourceZip(Bundle* bundle, const char* filename); @@ -545,6 +556,10 @@ public: inline void setResources(KeyedVector >* res) { delete mRes; mRes = res; } + inline sp& getFullResPaths() { return mFullResPaths; } + inline void + setFullResPaths(sp& res) { mFullResPaths = res; } + private: String8 mPackage; SortedVector mGroupEntries; @@ -558,6 +573,8 @@ private: sp mOverlay; KeyedVector >* mRes; + + sp mFullResPaths; }; #endif // __AAPT_ASSETS_H