Fix: automatic enum value overwrites existing error code value
[lttng-tools.git] / include / lttng / event-internal.h
CommitLineData
2d1318e4
JG
1/*
2 * event-internal.h
3 *
4 * Linux Trace Toolkit Control Library
5 *
6 * Copyright (C) 2017 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
7 *
8 * This library is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License, version 2.1 only,
10 * as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef LTTNG_EVENT_INTERNAL_H
23#define LTTNG_EVENT_INTERNAL_H
24
76fcf151
JG
25#include <common/macros.h>
26#include <lttng/event.h>
27
2d1318e4
JG
28struct lttng_userspace_probe_location;
29
30struct lttng_event_extended {
31 /*
32 * exclusions and filter_expression are only set when the lttng_event
33 * was created/allocated by a list operation. These two elements must
34 * not be free'd as they are part of the same contiguous buffer that
35 * contains all events returned by the listing.
36 */
37 char *filter_expression;
38 struct {
39 unsigned int count;
40 /* Array of strings of fixed LTTNG_SYMBOL_NAME_LEN length. */
41 char *strings;
42 } exclusions;
43 struct lttng_userspace_probe_location *probe_location;
44};
45
76fcf151
JG
46LTTNG_HIDDEN
47struct lttng_event *lttng_event_copy(const struct lttng_event *event);
48
2d1318e4 49#endif /* LTTNG_EVENT_INTERNAL_H */
This page took 0.03203 seconds and 5 git commands to generate.