a60d80e1d0482338d1dc9256681286c66a7007fc
2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2016 EfficiOS Inc.
5 * Copyright (C) 2016 Alexandre Montplaisir <alexmonthy@efficios.com>
8 package org
.lttng
.ust
.agent
.context
;
11 * Virtual class containing the Java side of the LTTng-UST context provider
12 * registering/unregistering methods.
14 * @author Alexandre Montplaisir
16 final class LttngContextApi
{
18 private LttngContextApi() {}
21 * Register a context provider to UST.
23 * The callbacks are the same for all providers, and are defined in the .c
24 * file. The only needed information is the retriever (which is called
25 * "provider" from UST'S point of view) name.
27 * @param provider_name
28 * The name of the provider
29 * @return The pointer to the created provider object. It's useless in the
30 * Java space, but will be needed for
31 * {@link #unregisterProvider(long)}.
33 static native long registerProvider(String provider_name
);
36 * Unregister a previously-registered context provider from UST.
39 * The pointer to the provider object, obtained from
40 * {@link #registerProvider}
42 static native void unregisterProvider(long provider_ref
);
This page took 0.038648 seconds and 3 git commands to generate.