Add Babeltrace 2 Python bindings
[babeltrace.git] / bindings / python / bt2 / native_btnotification.i
CommitLineData
81447b5b
PP
1/*
2 * The MIT License (MIT)
3 *
4 * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25%{
26#include <babeltrace/component/notification/event.h>
27#include <babeltrace/component/notification/packet.h>
28#include <babeltrace/component/notification/schema.h>
29#include <babeltrace/component/notification/stream.h>
30%}
31
32/* Type */
33struct bt_notification;;
34
35/* Notification type */
36enum bt_notification_type {
37 BT_NOTIFICATION_TYPE_UNKNOWN = -1,
38 BT_NOTIFICATION_TYPE_ALL = 0,
39 BT_NOTIFICATION_TYPE_EVENT = 1,
40 BT_NOTIFICATION_TYPE_PACKET_BEGIN = 2,
41 BT_NOTIFICATION_TYPE_PACKET_END = 3,
42 BT_NOTIFICATION_TYPE_STREAM_END = 4,
43 BT_NOTIFICATION_TYPE_NEW_TRACE = 5,
44 BT_NOTIFICATION_TYPE_NEW_STREAM_CLASS = 6,
45 BT_NOTIFICATION_TYPE_NEW_EVENT_CLASS = 7,
46 BT_NOTIFICATION_TYPE_END_OF_TRACE = 8,
47 BT_NOTIFICATION_TYPE_NR,
48};
49
50/* General functions */
51enum bt_notification_type bt_notification_get_type(
52 struct bt_notification *notification);
53
54/* Event notification functions */
55struct bt_notification *bt_notification_event_create(
56 struct bt_ctf_event *event);
57struct bt_ctf_event *bt_notification_event_get_event(
58 struct bt_notification *notification);
59
60/* Packet notification functions */
61struct bt_notification *bt_notification_packet_begin_create(
62 struct bt_ctf_packet *packet);
63struct bt_ctf_packet *bt_notification_packet_begin_get_packet(
64 struct bt_notification *notification);
65struct bt_notification *bt_notification_packet_end_create(
66 struct bt_ctf_packet *packet);
67struct bt_ctf_packet *bt_notification_packet_end_get_packet(
68 struct bt_notification *notification);
69
70/* Schema notification functions */
71/*
72struct bt_notification *bt_notification_new_trace_create(
73 struct bt_ctf_trace *trace);
74struct bt_ctf_trace *bt_notification_new_trace_get_trace(
75 struct bt_notification *notification);
76struct bt_notification *bt_notification_new_stream_class_create(
77 struct bt_ctf_stream_class *stream_class);
78struct bt_ctf_trace *bt_notification_new_stream_class_get_stream_class(
79 struct bt_notification *notification);
80*/
81
82/* Stream notification functions */
83struct bt_notification *bt_notification_stream_end_create(
84 struct bt_ctf_stream *stream);
85struct bt_ctf_stream *bt_notification_stream_end_get_stream(
86 struct bt_notification *notification);
This page took 0.028045 seconds and 4 git commands to generate.