X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=liblttng-ust-java%2FLTTngUst.c;h=f5e0c96b9c1e59e74e29a51b47577c49d0d15ed6;hb=5152f6df156d6ccb234965d1b3d26b167bd6b94e;hp=9ae3983050b0095afcde4da886b26aed0798f343;hpb=071f1d0be5fb8e07972f59f4c1cde9cf874718b3;p=lttng-ust.git diff --git a/liblttng-ust-java/LTTngUst.c b/liblttng-ust-java/LTTngUst.c index 9ae39830..f5e0c96b 100644 --- a/liblttng-ust-java/LTTngUst.c +++ b/liblttng-ust-java/LTTngUst.c @@ -1,29 +1,18 @@ /* - * Copyright (C) 2011-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Copyright (C) 2011-2012 Mathieu Desnoyers */ -#include +#define _LGPL_SOURCE +#include "org_lttng_ust_LTTngUst.h" #define TRACEPOINT_DEFINE #define TRACEPOINT_CREATE_PROBES #include "lttng_ust_java.h" JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jint payload) { @@ -36,7 +25,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jint payload1, jint payload2) @@ -50,7 +39,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jlong payload) { @@ -63,7 +52,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jlong payload1, jlong payload2) @@ -77,7 +66,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv *en } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointString(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jstring payload) {