LTTng control library C API
Loading...
Searching...
No Matches
handle.h
1/*
2 * SPDX-FileCopyrightText: 2014 David Goulet <dgoulet@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_HANDLE_H
9#define LTTNG_HANDLE_H
10
11#include <lttng/domain.h>
12#include <lttng/lttng-export.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
23/*
24 * Handle used as a context for commands.
25 *
26 * The structures should be initialized to zero before use.
27 */
28#define LTTNG_HANDLE_PADDING1 16
29
47
50
51 char padding[LTTNG_HANDLE_PADDING1];
52};
53
86LTTNG_EXPORT extern struct lttng_handle *lttng_create_handle(const char *session_name,
87 struct lttng_domain *domain);
88
108LTTNG_EXPORT extern void lttng_destroy_handle(struct lttng_handle *handle);
109
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif /* LTTNG_HANDLE_H */
#define LTTNG_NAME_MAX
Maximum name length.
Definition constant.h:54
struct lttng_handle * lttng_create_handle(const char *session_name, struct lttng_domain *domain)
Creates and returns a recording session handle from the recording session name session_name and the o...
void lttng_destroy_handle(struct lttng_handle *handle)
Destroys the recording session handle handle.
Tracing domain summary.
Definition domain.h:100
Recording session handle.
Definition handle.h:44
char session_name[LTTNG_NAME_MAX]
Recording session name.
Definition handle.h:46
struct lttng_domain domain
Tracing domain summary.
Definition handle.h:49