8ea43e1ae362d471279c7b77c18c5bee9e2abf3f
[lttng-ust.git] / liblttng-ust-java-agent / jni / common / lttng_ust_context.h
1 /*
2 * Copyright (C) 2016 - EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; only
7 * version 2.1 of the License.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_
20 #define LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_
21
22 #include <urcu/tls-compat.h>
23
24 struct lttng_ust_jni_ctx_entry;
25
26 struct lttng_ust_jni_tls {
27 struct lttng_ust_jni_ctx_entry *ctx_entries;
28 int32_t ctx_entries_len;
29 signed char *ctx_strings;
30 int32_t ctx_strings_len;
31 };
32
33 extern DECLARE_URCU_TLS(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);
34
35 #endif /* LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_ */
This page took 0.0295 seconds and 3 git commands to generate.