summaryrefslogtreecommitdiffstats
path: root/libnativeloader
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-02-12 18:07:29 -0800
committerElliott Hughes <enh@google.com>2016-02-12 18:07:29 -0800
commite2b4e1e00cc5263ca7c0adbe8f8418f5c98ea5fe (patch)
tree3ee23f5c018aa71a4b9e3dce4e271153b7dd008a /libnativeloader
parent1697f4ee71a9e123432c09c068615d9f5a49780b (diff)
downloadcore-e2b4e1e00cc5263ca7c0adbe8f8418f5c98ea5fe.tar.gz
core-e2b4e1e00cc5263ca7c0adbe8f8418f5c98ea5fe.tar.bz2
core-e2b4e1e00cc5263ca7c0adbe8f8418f5c98ea5fe.zip
Move libnativeloader headers into libnativeloader.
Change-Id: I227676276da1b08a84486f29fb0e1502c8dbdf4a
Diffstat (limited to 'libnativeloader')
-rw-r--r--libnativeloader/Android.mk9
-rw-r--r--libnativeloader/include/nativeloader/native_loader.h32
2 files changed, 38 insertions, 3 deletions
diff --git a/libnativeloader/Android.mk b/libnativeloader/Android.mk
index 5e65c4c3e..6c064c706 100644
--- a/libnativeloader/Android.mk
+++ b/libnativeloader/Android.mk
@@ -17,7 +17,8 @@ LOCAL_CFLAGS += -Werror -Wall
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
LOCAL_LDFLAGS := -ldl
LOCAL_MULTILIB := both
-
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
include $(BUILD_SHARED_LIBRARY)
# Shared library for host
@@ -34,7 +35,8 @@ LOCAL_CFLAGS += -Werror -Wall
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
LOCAL_LDFLAGS := -ldl
LOCAL_MULTILIB := both
-
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
include $(BUILD_HOST_SHARED_LIBRARY)
# Static library for host
@@ -50,5 +52,6 @@ LOCAL_CFLAGS += -Werror -Wall
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
LOCAL_LDFLAGS := -ldl
LOCAL_MULTILIB := both
-
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
include $(BUILD_HOST_STATIC_LIBRARY)
diff --git a/libnativeloader/include/nativeloader/native_loader.h b/libnativeloader/include/nativeloader/native_loader.h
new file mode 100644
index 000000000..da072530e
--- /dev/null
+++ b/libnativeloader/include/nativeloader/native_loader.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2015 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 NATIVE_LOADER_H_
+#define NATIVE_LOADER_H_
+
+#include "jni.h"
+#include <stdint.h>
+
+namespace android {
+
+__attribute__((visibility("default")))
+void* OpenNativeLibrary(JNIEnv* env, int32_t target_sdk_version, const char* path,
+ jobject class_loader, bool is_shared, jstring library_path,
+ jstring permitted_path);
+
+}; // namespace android
+
+#endif // NATIVE_BRIDGE_H_