Commit | Line | Data |
---|---|---|
5ab4c5cb PMF |
1 | #include <jni.h> |
2 | #include <ust/marker.h> | |
3 | ||
4 | JNIEXPORT void JNICALL Java_UST_ust_1java_1event (JNIEnv *env, jobject jobj, jstring ev_name, jstring args) | |
5 | { | |
6 | jboolean iscopy; | |
7 | const char *ev_name_cstr = (*env)->GetStringUTFChars(env, ev_name, &iscopy); | |
8 | const char *args_cstr = (*env)->GetStringUTFChars(env, args, &iscopy); | |
9 | ||
686debc3 | 10 | ust_marker(ust, java_event, "name %s args %s", ev_name_cstr, args_cstr); |
5ab4c5cb PMF |
11 | } |
12 | ||
b521931e | 13 | UST_MARKER_LIB |