Fix: add missing void param to bt_clock_class_priority_map_create
[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
81447b5b 25/* Type */
811644b8 26struct bt_notification;
81447b5b
PP
27
28/* Notification type */
29enum bt_notification_type {
811644b8 30 BT_NOTIFICATION_TYPE_SENTINEL = -1000,
81447b5b 31 BT_NOTIFICATION_TYPE_UNKNOWN = -1,
811644b8
PP
32 BT_NOTIFICATION_TYPE_ALL = -2,
33 BT_NOTIFICATION_TYPE_EVENT = 0,
34 BT_NOTIFICATION_TYPE_INACTIVITY = 1,
35 BT_NOTIFICATION_TYPE_STREAM_BEGIN = 2,
36 BT_NOTIFICATION_TYPE_STREAM_END = 3,
37 BT_NOTIFICATION_TYPE_PACKET_BEGIN = 4,
38 BT_NOTIFICATION_TYPE_PACKET_END = 5,
39 BT_NOTIFICATION_TYPE_DISCARDED_EVENTS = 6,
40 BT_NOTIFICATION_TYPE_DISCARDED_PACKETS = 7,
81447b5b
PP
41};
42
43/* General functions */
44enum bt_notification_type bt_notification_get_type(
45 struct bt_notification *notification);
46
47/* Event notification functions */
48struct bt_notification *bt_notification_event_create(
811644b8
PP
49 struct bt_ctf_event *event,
50 struct bt_clock_class_priority_map *clock_class_priority_map);
81447b5b
PP
51struct bt_ctf_event *bt_notification_event_get_event(
52 struct bt_notification *notification);
811644b8
PP
53struct bt_clock_class_priority_map *
54bt_notification_event_get_clock_class_priority_map(
55 struct bt_notification *notification);
56
57/* Inactivity notification functions */
58struct bt_notification *bt_notification_inactivity_create(
59 struct bt_clock_class_priority_map *clock_class_priority_map);
60struct bt_clock_class_priority_map *
61bt_notification_inactivity_get_clock_class_priority_map(
62 struct bt_notification *notification);
63struct bt_ctf_clock_value *bt_notification_inactivity_get_clock_value(
64 struct bt_notification *notification,
65 struct bt_ctf_clock_class *clock_class);
66int bt_notification_inactivity_set_clock_value(
67 struct bt_notification *notification,
68 struct bt_ctf_clock_value *clock_value);
81447b5b
PP
69
70/* Packet notification functions */
71struct bt_notification *bt_notification_packet_begin_create(
72 struct bt_ctf_packet *packet);
81447b5b
PP
73struct bt_notification *bt_notification_packet_end_create(
74 struct bt_ctf_packet *packet);
811644b8 75struct bt_ctf_packet *bt_notification_packet_begin_get_packet(
81447b5b 76 struct bt_notification *notification);
811644b8 77struct bt_ctf_packet *bt_notification_packet_end_get_packet(
81447b5b 78 struct bt_notification *notification);
81447b5b
PP
79
80/* Stream notification functions */
811644b8
PP
81struct bt_notification *bt_notification_stream_begin_create(
82 struct bt_ctf_stream *stream);
81447b5b
PP
83struct bt_notification *bt_notification_stream_end_create(
84 struct bt_ctf_stream *stream);
811644b8
PP
85struct bt_ctf_stream *bt_notification_stream_begin_get_stream(
86 struct bt_notification *notification);
81447b5b
PP
87struct bt_ctf_stream *bt_notification_stream_end_get_stream(
88 struct bt_notification *notification);
811644b8
PP
89
90/* Discarded packets notification functions */
91struct bt_ctf_clock_value *
92bt_notification_discarded_packets_get_begin_clock_value(
93 struct bt_notification *notification);
94struct bt_ctf_clock_value *
95bt_notification_discarded_packets_get_end_clock_value(
96 struct bt_notification *notification);
97int64_t bt_notification_discarded_packets_get_count(
98 struct bt_notification *notification);
99struct bt_ctf_stream *bt_notification_discarded_packets_get_stream(
100 struct bt_notification *notification);
101
102/* Discarded events notification functions */
103struct bt_ctf_clock_value *
104bt_notification_discarded_events_get_begin_clock_value(
105 struct bt_notification *notification);
106struct bt_ctf_clock_value *
107bt_notification_discarded_events_get_end_clock_value(
108 struct bt_notification *notification);
109int64_t bt_notification_discarded_events_get_count(
110 struct bt_notification *notification);
111struct bt_ctf_stream *bt_notification_discarded_events_get_stream(
112 struct bt_notification *notification);
This page took 0.032158 seconds and 4 git commands to generate.