Babeltrace 2 C API 2.1.0
Open-source trace manipulation framework
Loading...
Searching...
No Matches
event.h
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
5 */
6
7#ifndef BABELTRACE2_TRACE_IR_EVENT_H
8#define BABELTRACE2_TRACE_IR_EVENT_H
9
10/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
11
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
14#endif
15
16#include <babeltrace2/types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
172extern bt_event_class *bt_event_borrow_class(bt_event *event) __BT_NOEXCEPT;
173
182 const bt_event *event) __BT_NOEXCEPT;
183
208extern bt_stream *bt_event_borrow_stream(bt_event *event) __BT_NOEXCEPT;
209
218 const bt_event *event) __BT_NOEXCEPT;
219
248extern bt_packet *bt_event_borrow_packet(bt_event *event) __BT_NOEXCEPT;
249
258 const bt_event *event) __BT_NOEXCEPT;
259
285extern bt_field *bt_event_borrow_payload_field(bt_event *event) __BT_NOEXCEPT;
286
295 const bt_event *event) __BT_NOEXCEPT;
296
315extern bt_field *
317
326 const bt_event *event) __BT_NOEXCEPT;
327
346extern bt_field *
348
357 const bt_event *event) __BT_NOEXCEPT;
358
363#ifdef __cplusplus
364}
365#endif
366
367#endif /* BABELTRACE2_TRACE_IR_EVENT_H */
struct bt_event_class bt_event_class
Event class.
Definition types.h:37
bt_field * bt_event_borrow_specific_context_field(bt_event *event)
Borrows the specific context field of the event event.
const bt_field * bt_event_borrow_common_context_field_const(const bt_event *event)
Borrows the common context field of the event event (const version).
const bt_stream * bt_event_borrow_stream_const(const bt_event *event)
Borrows the stream conceptually containing the event event (const version).
const bt_event_class * bt_event_borrow_class_const(const bt_event *event)
Borrows the class of the event event (const version).
bt_event_class * bt_event_borrow_class(bt_event *event)
Borrows the class of the event event.
const bt_packet * bt_event_borrow_packet_const(const bt_event *event)
Borrows the packet conceptually containing the event event (const version).
const bt_field * bt_event_borrow_payload_field_const(const bt_event *event)
Borrows the payload field of the event event (const version).
bt_field * bt_event_borrow_payload_field(bt_event *event)
Borrows the payload field of the event event.
bt_stream * bt_event_borrow_stream(bt_event *event)
Borrows the stream conceptually containing the event event.
bt_packet * bt_event_borrow_packet(bt_event *event)
Borrows the packet conceptually containing the event event.
struct bt_event bt_event
Event.
Definition types.h:36
const bt_field * bt_event_borrow_specific_context_field_const(const bt_event *event)
Borrows the specific context field of the event event (const version).
bt_field * bt_event_borrow_common_context_field(bt_event *event)
Borrows the common context field of the event event.
struct bt_field bt_field
Field.
Definition types.h:38
struct bt_packet bt_packet
Packet.
Definition types.h:62
struct bt_stream bt_stream
Stream.
Definition types.h:89