summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ae8c46e)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include <common/error.h>
#include <common/macros.h>
#include <common/error.h>
#include <common/macros.h>
int parse_application_context(const char *str, char **out_provider_name,
char **out_ctx_name)
{
int parse_application_context(const char *str, char **out_provider_name,
char **out_ctx_name)
{
#ifndef LTTNG_COMMON_CONTEXT_H
#define LTTNG_COMMON_CONTEXT_H
#ifndef LTTNG_COMMON_CONTEXT_H
#define LTTNG_COMMON_CONTEXT_H
+#include <common/macros.h>
+
/*
* Parse string as an application context of the form
* "$app.provider_name:context_name" and return the provider name and context
/*
* Parse string as an application context of the form
* "$app.provider_name:context_name" and return the provider name and context
* Returns 0 if the string is a valid application context, else a negative
* value on error.
*/
* Returns 0 if the string is a valid application context, else a negative
* value on error.
*/
int parse_application_context(const char *str, char **provider_name,
char **ctx_name);
int parse_application_context(const char *str, char **provider_name,
char **ctx_name);