Commit | Line | Data |
---|---|---|
d3e4dcd8 PP |
1 | #ifndef BABELTRACE_COMPONENT_COMPONENT_CLASS_FILTER_H |
2 | #define BABELTRACE_COMPONENT_COMPONENT_CLASS_FILTER_H | |
3 | ||
4 | /* | |
5 | * Babeltrace - Component Class Interface. | |
6 | * | |
7 | * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
8 | * | |
9 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
10 | * of this software and associated documentation files (the "Software"), to deal | |
11 | * in the Software without restriction, including without limitation the rights | |
12 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
13 | * copies of the Software, and to permit persons to whom the Software is | |
14 | * furnished to do so, subject to the following conditions: | |
15 | * | |
16 | * The above copyright notice and this permission notice shall be included in | |
17 | * all copies or substantial portions of the Software. | |
18 | * | |
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
20 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
22 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
23 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
24 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
25 | * SOFTWARE. | |
26 | */ | |
27 | ||
28 | #include <babeltrace/component/component.h> | |
29 | ||
30 | #ifdef __cplusplus | |
31 | extern "C" { | |
32 | #endif | |
33 | ||
34 | struct bt_component_class; | |
35 | ||
d3e4dcd8 PP |
36 | typedef enum bt_component_status (*bt_component_class_filter_add_iterator_method)( |
37 | struct bt_component *, struct bt_notification_iterator *); | |
38 | ||
39 | extern | |
40 | struct bt_component_class *bt_component_class_filter_create(const char *name, | |
d3eb6e8f PP |
41 | bt_component_class_notification_iterator_get_method notification_iterator_get_method, |
42 | bt_component_class_notification_iterator_next_method notification_iterator_next_method); | |
d3e4dcd8 PP |
43 | |
44 | extern int bt_component_class_filter_set_add_iterator_method( | |
45 | struct bt_component_class *component_class, | |
46 | bt_component_class_filter_add_iterator_method add_iterator_method); | |
47 | ||
d3eb6e8f PP |
48 | extern |
49 | int bt_component_class_filter_set_notification_iterator_init_method( | |
50 | struct bt_component_class *component_class, | |
51 | bt_component_class_notification_iterator_init_method notification_iterator_init_method); | |
52 | ||
53 | extern | |
54 | int bt_component_class_filter_set_notification_iterator_destroy_method( | |
55 | struct bt_component_class *component_class, | |
56 | bt_component_class_notification_iterator_destroy_method notification_iterator_destroy_method); | |
57 | ||
58 | extern | |
59 | int bt_component_class_filter_set_notification_iterator_seek_time_method( | |
60 | struct bt_component_class *component_class, | |
61 | bt_component_class_notification_iterator_seek_time_method notification_iterator_seek_time_method); | |
62 | ||
63 | #ifdef __cplusplus | |
64 | } | |
65 | #endif | |
66 | ||
d3e4dcd8 | 67 | #endif /* BABELTRACE_COMPONENT_COMPONENT_CLASS_FILTER_H */ |