Rename lttng_event_rule_userspace_probe to lttng_event_rule_kernel_uprobe
[lttng-tools.git] / src / common / context.h
CommitLineData
71a559f8 1/*
ab5be9fa 2 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
71a559f8 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
71a559f8 5 *
71a559f8
JG
6 */
7
8#ifndef LTTNG_COMMON_CONTEXT_H
9#define LTTNG_COMMON_CONTEXT_H
10
b12ed34b
JG
11#include <common/macros.h>
12
71a559f8
JG
13/*
14 * Parse string as an application context of the form
15 * "$app.provider_name:context_name" and return the provider name and context
16 * name separately.
17 *
18 * provider_name and ctx_name are returned only if an application context name
19 * was successfully parsed and must be freed by the caller.
20 *
21 * Returns 0 if the string is a valid application context, else a negative
22 * value on error.
23 */
b12ed34b 24LTTNG_HIDDEN
71a559f8
JG
25int parse_application_context(const char *str, char **provider_name,
26 char **ctx_name);
27
28#endif /* LTTNG_COMMON_CONTEXT_H */
This page took 0.04062 seconds and 4 git commands to generate.