aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Varga <nite@hq.sk>2016-02-09 17:07:07 +0100
committerRobert Varga <nite@hq.sk>2016-02-09 17:07:07 +0100
commitc15cc30571730e275bca061b469d18e2cfd484cf (patch)
treeb2a7df1e478ad1ea85428b965fd464de5a779071
parentee8c0a03d2febac7ebf9ba7e16fcf25950ed19cd (diff)
Mark internal implementation functions as hidden
Adding hidden attribute results in compilation failure if the symbol is not found when linking the .so. It should also lead to better performance, as it side-steps GOT. Change-Id: I7b6f39e663ca2b3e432669a3e2b36d7395f555b6 Signed-off-by: Robert Varga <nite@hq.sk>
-rw-r--r--vpp-japi/japi/vppjni_env.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/vpp-japi/japi/vppjni_env.h b/vpp-japi/japi/vppjni_env.h
index fe9767b0..44029c2c 100644
--- a/vpp-japi/japi/vppjni_env.h
+++ b/vpp-japi/japi/vppjni_env.h
@@ -110,9 +110,9 @@ typedef struct jenv_field {
#define BIND_JAPI_STRING_FIELD(cls, field) \
BIND_JAPI_OBJ_FIELD(cls, field, "Ljava/lang/String;")
-jobject vppjni_new_object(JNIEnv *env, const vppjni_class_t *ptr, va_list ap);
-void vppjni_register_class(vppjni_class_t *ptr);
-void vppjni_register_field(vppjni_field_t *ptr);
-int vppjni_init(JNIEnv *env);
-void vppjni_uninit(JNIEnv *env);
+jobject vppjni_new_object(JNIEnv *env, const vppjni_class_t *ptr, va_list ap) __attribute__ ((visibility ("hidden")));
+void vppjni_register_class(vppjni_class_t *ptr) __attribute__ ((visibility ("hidden")));
+void vppjni_register_field(vppjni_field_t *ptr) __attribute__ ((visibility ("hidden")));
+int vppjni_init(JNIEnv *env) __attribute__ ((visibility ("hidden")));
+void vppjni_uninit(JNIEnv *env) __attribute__ ((visibility ("hidden")));