More modifications
[babeltrace.git] / include / babeltrace / plugin / component-factory-internal.h
1
2 /** Component initialization functions */
3 /**
4 * Allocate a source component.
5 *
6 * @param name Component instance name (will be copied)
7 * @param private_data Private component implementation data
8 * @param destroy_cb Component private data clean-up callback
9 * @param iterator_create_cb Iterator creation callback
10 * @returns A source component instance
11 */
12 extern struct bt_component *bt_component_source_create(const char *name,
13 void *private_data, bt_component_destroy_cb destroy_func,
14 bt_component_source_iterator_create_cb iterator_create_cb);
15
16 /**
17 * Allocate a sink component.
18 *
19 * @param name Component instance name (will be copied)
20 * @param private_data Private component implementation data
21 * @param destroy_cb Component private data clean-up callback
22 * @param notification_cb Notification handling callback
23 * @returns A sink component instance
24 */
25 extern struct bt_component *bt_component_sink_create(const char *name,
26 void *private_data, bt_component_destroy_cb destroy_func,
27 bt_component_sink_handle_notification_cb notification_cb);
This page took 0.028908 seconds and 4 git commands to generate.