syslog-ng source
java-class-loader.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2014 Balabit
3  * Copyright (c) 2010-2014 Viktor Juhasz <viktor.juhasz@balabit.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 
26 #ifndef JAVA_CLASS_LOADER_H_
27 #define JAVA_CLASS_LOADER_H_
28 
29 #include <jni.h>
30 #include <syslog-ng.h>
31 
32 typedef struct _ClassLoader
33 {
35  jmethodID loader_constructor;
36  jmethodID mi_loadclass;
38 } ClassLoader;
39 
40 
41 ClassLoader *class_loader_new(JNIEnv *java_env);
42 void class_loader_free(ClassLoader *self, JNIEnv *java_env);
43 jclass class_loader_load_class(ClassLoader *self, JNIEnv *java_env, const gchar *class_name, const gchar *class_path);
44 void class_loader_init_current_thread(ClassLoader *self, JNIEnv *env);
45 
46 
47 #endif /* JAVA_CLASS_LOADER_H_ */
void class_loader_init_current_thread(ClassLoader *self, JNIEnv *env)
Definition: java-class-loader.c:125
ClassLoader * class_loader_new(JNIEnv *java_env)
Definition: java-class-loader.c:51
void class_loader_free(ClassLoader *self, JNIEnv *java_env)
Definition: java-class-loader.c:94
jclass class_loader_load_class(ClassLoader *self, JNIEnv *java_env, const gchar *class_name, const gchar *class_path)
Definition: java-class-loader.c:109
Definition: java-class-loader.h:33
jmethodID mi_loadclass
Definition: java-class-loader.h:36
jclass syslogng_class_loader
Definition: java-class-loader.h:34
jmethodID mi_init_current_thread
Definition: java-class-loader.h:37
jmethodID loader_constructor
Definition: java-class-loader.h:35