diff options
author | Calin Juravle <calin@google.com> | 2014-08-12 20:55:20 +0100 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-08-15 13:27:42 +0100 |
commit | 93de4273d72a2558a7b3423547b5074cd76c5796 (patch) | |
tree | 227453bdc534d34c05bdaf6a0e34edf555da5b19 /runtime/native_bridge_art_interface.h | |
parent | 4f1d05f0531b980b16dbff18161f02160919ec31 (diff) | |
download | art-93de4273d72a2558a7b3423547b5074cd76c5796.zip art-93de4273d72a2558a7b3423547b5074cd76c5796.tar.gz art-93de4273d72a2558a7b3423547b5074cd76c5796.tar.bz2 |
[ART] Move to system/core native bridge library
Some cleanups on the way:
- move NativeBridgeRuntimeCallbacks from a global to a field
- rename native_bridge_library_string to the more suggestive
navtive_bridge_library_path
- clean up imports
Bug: 16884833
(cherry picked from commit I73aab8e212860ba5aee9444d801806d3da326a41)
Change-Id: I67f037ea81d2a4ede4294afd8b84b7640e534a13
Diffstat (limited to 'runtime/native_bridge_art_interface.h')
-rw-r--r-- | runtime/native_bridge_art_interface.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/runtime/native_bridge_art_interface.h b/runtime/native_bridge_art_interface.h new file mode 100644 index 0000000..08735c8 --- /dev/null +++ b/runtime/native_bridge_art_interface.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ART_RUNTIME_NATIVE_BRIDGE_ART_INTERFACE_H_ +#define ART_RUNTIME_NATIVE_BRIDGE_ART_INTERFACE_H_ + +#include <jni.h> +#include <stdint.h> + +namespace art { + +const char* GetMethodShorty(JNIEnv* env, jmethodID mid); + +uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz); + +uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, + uint32_t method_count); + +}; // namespace art + +#endif // ART_RUNTIME_NATIVE_BRIDGE_ART_INTERFACE_H_ |