blob: 2c1e3579eb9281b6ebba278c717e42bc74ffc578 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Adam Lesinskidcb3c652017-01-23 12:58:11 -080017#ifndef ANDROID_RUNTIME_ASSETMANAGER_H
18#define ANDROID_RUNTIME_ASSETMANAGER_H
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080019
Adam Lesinskidcb3c652017-01-23 12:58:11 -080020#include "androidfw/AssetManager2.h"
21#include "androidfw/MutexGuard.h"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080022
23#include "jni.h"
24
25namespace android {
26
Adam Lesinskidcb3c652017-01-23 12:58:11 -080027extern AAssetManager* NdkAssetManagerForJavaObject(JNIEnv* env, jobject jassetmanager);
28extern Guarded<AssetManager2>* AssetManagerForJavaObject(JNIEnv* env, jobject jassetmanager);
29extern Guarded<AssetManager2>* AssetManagerForNdkAssetManager(AAssetManager* assetmanager);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080030
Adam Lesinskidcb3c652017-01-23 12:58:11 -080031} // namespace android
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080032
Adam Lesinskidcb3c652017-01-23 12:58:11 -080033#endif // ANDROID_RUNTIME_ASSETMANAGER_H