summaryrefslogtreecommitdiff
path: root/runtime/native_bridge_art_interface.h
diff options
context:
space:
mode:
author jgu21 <jinghui.gu@intel.com> 2014-09-10 06:57:17 -0400
committer Andreas Gampe <agampe@google.com> 2014-09-23 20:11:31 -0700
commita6da74e941d7cee498ac3880018a1d8dc953c6eb (patch)
treebb36d90e914f8a842abd7dd854ba168f9441e8db /runtime/native_bridge_art_interface.h
parenta20b7b3ecf90bb761d7085403782721f2fb474c5 (diff)
ART: Update for split native bridge initialization
Change-Id: I0b93da93251c6b4638de786bf98cf99df07c3fc2
Diffstat (limited to 'runtime/native_bridge_art_interface.h')
-rw-r--r--runtime/native_bridge_art_interface.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/runtime/native_bridge_art_interface.h b/runtime/native_bridge_art_interface.h
index 08735c8955..42f0ed25e6 100644
--- a/runtime/native_bridge_art_interface.h
+++ b/runtime/native_bridge_art_interface.h
@@ -19,15 +19,21 @@
#include <jni.h>
#include <stdint.h>
+#include <string>
namespace art {
-const char* GetMethodShorty(JNIEnv* env, jmethodID mid);
+// Mirror libnativebridge interface. Done to have the ART callbacks out of line, and not require
+// the system/core header file in other files.
-uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz);
+void LoadNativeBridge(std::string& native_bridge_library_filename);
-uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods,
- uint32_t method_count);
+// This is mostly for testing purposes, as in a full system this is called by Zygote code.
+void PreInitializeNativeBridge(std::string dir);
+
+void InitializeNativeBridge(JNIEnv* env, const char* instruction_set);
+
+void UnloadNativeBridge();
}; // namespace art