summaryrefslogtreecommitdiff
path: root/ics-openvpn-stripped/main/jni/jniglue.c
blob: 36ad8fe74f46f60e0592e18f153ed1a404ef01db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <jni.h>
#include <android/log.h>
#include <stdlib.h>
#include <setjmp.h>

#include "jniglue.h"

jint JNI_OnLoad(JavaVM *vm, void *reserved) {
    __android_log_write(ANDROID_LOG_DEBUG,"openvpn", "Loading openvpn native library $id$ compiled on "   __DATE__ " " __TIME__ );
    return JNI_VERSION_1_2;
}


void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1)
{
    __android_log_print(ANDROID_LOG_DEBUG,"openvpn","%s%s%s",prefix,prefix_sep,m1);
}

void Java_de_blinkt_openvpn_core_NativeUtils_jniclose(JNIEnv *env,jclass jo, jint fd) {
	int ret = close(fd);
}