2 /** Component initialization functions */
4 * Allocate a source component.
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
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
);
17 * Allocate a sink component.
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
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
);