diff options
author | 2010-07-12 18:21:36 -0700 | |
---|---|---|
committer | 2010-07-15 14:28:21 -0700 | |
commit | 9373680116a02a16e10649ec9a9926ee2d742bcd (patch) | |
tree | 79c5bf635ce263604cc080248ff28dbf557a21f5 | |
parent | f568a7480d0d6b59adce86b346d8090ff1375e33 (diff) |
Add native C APIs for working with the Asset Manager
Change-Id: I493b142c4b35e5cc1a1e85283bb5dfb306a6d261
-rw-r--r-- | include/utils/AssetManager.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/utils/AssetManager.h b/include/utils/AssetManager.h index d8994e05a0..97694ff0a9 100644 --- a/include/utils/AssetManager.h +++ b/include/utils/AssetManager.h @@ -29,6 +29,24 @@ #include <utils/ZipFileRO.h> #include <utils/threads.h> +/* + * Native-app access is via the opaque typedef struct AAssetManager in the C namespace. + */ +#ifdef __cplusplus +extern "C" { +#endif + +struct AAssetManager { }; + +#ifdef __cplusplus +}; +#endif + + +/* + * Now the proper C++ android-namespace definitions + */ + namespace android { class Asset; // fwd decl for things that include Asset.h first @@ -48,7 +66,7 @@ struct ResTable_config; * The asset hierarchy may be examined like a filesystem, using * AssetDir objects to peruse a single directory. */ -class AssetManager { +class AssetManager : public AAssetManager { public: typedef enum CacheMode { CACHE_UNKNOWN = 0, |