lib: update copyrights
[babeltrace.git] / include / babeltrace / graph / const-notification.h
CommitLineData
7b53201c
PP
1#ifndef BABELTRACE_GRAPH_NOTIFICATION_CONST_H
2#define BABELTRACE_GRAPH_NOTIFICATION_CONST_H
90354d3a
JG
3
4/*
f2b0325d 5 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
90354d3a
JG
6 * Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7 *
90354d3a
JG
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25 */
26
90354d3a
JG
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31struct bt_notification;
32
3fd7b79d
PP
33typedef struct bt_notification **bt_notification_array;
34
611c29fb
JG
35/**
36 * Notification types. Unhandled notification types should be ignored.
37 */
f7665a2e 38enum bt_notification_type {
b04a393b
PP
39 BT_NOTIFICATION_TYPE_EVENT = 0,
40 BT_NOTIFICATION_TYPE_INACTIVITY = 1,
e18f019b 41 BT_NOTIFICATION_TYPE_STREAM_BEGINNING = 2,
b04a393b 42 BT_NOTIFICATION_TYPE_STREAM_END = 3,
e18f019b 43 BT_NOTIFICATION_TYPE_PACKET_BEGINNING = 4,
b04a393b 44 BT_NOTIFICATION_TYPE_PACKET_END = 5,
90354d3a
JG
45};
46
611c29fb
JG
47/**
48 * Get a notification's type.
49 *
50 * @param notification Notification instance
f7665a2e 51 * @returns One of #bt_notification_type
611c29fb 52 */
f7665a2e 53extern enum bt_notification_type bt_notification_get_type(
7b53201c 54 const struct bt_notification *notification);
90354d3a 55
90354d3a
JG
56#ifdef __cplusplus
57}
58#endif
59
7b53201c 60#endif /* BABELTRACE_GRAPH_NOTIFICATION_CONST_H */
This page took 0.043681 seconds and 4 git commands to generate.