Home
last modified time | relevance | path

Searched refs:data_source (Results 1 – 7 of 7) sorted by relevance

/btstack/src/
H A Dbtstack_run_loop.c73 void btstack_run_loop_base_add_data_source(btstack_data_source_t * data_source){ in btstack_run_loop_base_add_data_source() argument
74 …tstack_linked_list_add(&btstack_run_loop_base_data_sources, (btstack_linked_item_t *) data_source); in btstack_run_loop_base_add_data_source()
77 bool btstack_run_loop_base_remove_data_source(btstack_data_source_t * data_source){ in btstack_run_loop_base_remove_data_source() argument
78 …ack_linked_list_remove(&btstack_run_loop_base_data_sources, (btstack_linked_item_t *) data_source); in btstack_run_loop_base_remove_data_source()
81 void btstack_run_loop_base_enable_data_source_callbacks(btstack_data_source_t * data_source, uint16… in btstack_run_loop_base_enable_data_source_callbacks() argument
82 data_source->flags |= callback_types; in btstack_run_loop_base_enable_data_source_callbacks()
85 void btstack_run_loop_base_disable_data_source_callbacks(btstack_data_source_t * data_source, uint1… in btstack_run_loop_base_disable_data_source_callbacks() argument
86 data_source->flags &= ~callback_types; in btstack_run_loop_base_disable_data_source_callbacks()
197 void btstack_run_loop_set_data_source_handler(btstack_data_source_t * data_source, void (*process)(… in btstack_run_loop_set_data_source_handler() argument
198 data_source->process = process; in btstack_run_loop_set_data_source_handler()
[all …]
H A Dbtstack_run_loop.h111 void (*add_data_source)(btstack_data_source_t * data_source);
112 bool (*remove_data_source)(btstack_data_source_t * data_source);
113 void (*enable_data_source_callbacks)(btstack_data_source_t * data_source, uint16_t callbacks);
114 void (*disable_data_source_callbacks)(btstack_data_source_t * data_source, uint16_t callbacks);
176 void btstack_run_loop_base_add_data_source(btstack_data_source_t * data_source);
183 bool btstack_run_loop_base_remove_data_source(btstack_data_source_t * data_source);
190 void btstack_run_loop_base_enable_data_source_callbacks(btstack_data_source_t * data_source, uint16…
197 void btstack_run_loop_base_disable_data_source_callbacks(btstack_data_source_t * data_source, uint1…
269 void btstack_run_loop_set_data_source_handler(btstack_data_source_t * data_source, void (*process)(…
277 void btstack_run_loop_set_data_source_fd(btstack_data_source_t * data_source, int fd);
[all …]
/btstack/test/embedded/
H A Dembedded_test.cpp26 static btstack_data_source_t data_source; variable
76 btstack_run_loop_set_data_source_handler(&data_source, &data_source_handler); in TEST()
77 btstack_run_loop_set_data_source_fd(&data_source, 0); in TEST()
78 btstack_run_loop_set_data_source_handle(&data_source, NULL); in TEST()
79 btstack_run_loop_enable_data_source_callbacks(&data_source, DATA_SOURCE_CALLBACK_POLL); in TEST()
80 btstack_run_loop_disable_data_source_callbacks(&data_source, DATA_SOURCE_CALLBACK_POLL); in TEST()
81 btstack_run_loop_add_data_source(&data_source); in TEST()
82 btstack_run_loop_remove_data_source(&data_source); in TEST()
86 btstack_run_loop_set_data_source_handler(&data_source, &data_source_handler_trigger_exit); in TEST()
87 btstack_run_loop_set_data_source_fd(&data_source, 0); in TEST()
[all …]
H A Drun_loop_base_test.cpp11 static btstack_data_source_t data_source; variable
38 btstack_run_loop_set_data_source_handler(&data_source, &data_source_handler); in TEST()
39 btstack_run_loop_base_enable_data_source_callbacks(&data_source, DATA_SOURCE_CALLBACK_POLL); in TEST()
40 btstack_run_loop_base_add_data_source(&data_source); in TEST()
41 btstack_run_loop_base_disable_data_source_callbacks(&data_source, DATA_SOURCE_CALLBACK_POLL); in TEST()
42 btstack_run_loop_base_remove_data_source(&data_source); in TEST()
/btstack/platform/posix/
H A Dbtstack_run_loop_posix.c310 static int btstack_run_loop_posix_register_pipe_datasource(btstack_data_source_t * data_source){ in btstack_run_loop_posix_register_pipe_datasource() argument
317 data_source->source.fd = fildes[0]; in btstack_run_loop_posix_register_pipe_datasource()
318 data_source->flags = DATA_SOURCE_CALLBACK_READ; in btstack_run_loop_posix_register_pipe_datasource()
319 btstack_run_loop_base_add_data_source(data_source); in btstack_run_loop_posix_register_pipe_datasource()
/btstack/example/
H A Da2dp_source_demo.c190 static stream_data_source_t data_source; variable
334 data_source = STREAM_MOD; in a2dp_source_and_avrcp_services_init()
411 switch (data_source){ in produce_audio()
728 …avrcp_target_set_now_playing_info(media_tracker.avrcp_cid, &tracks[data_source], sizeof(tracks)/si… in a2dp_source_packet_handler()
996 …avrcp_target_set_now_playing_info(media_tracker.avrcp_cid, &tracks[data_source], sizeof(tracks)/si… in stdin_process()
999 data_source = STREAM_SINE; in stdin_process()
1005 …avrcp_target_set_now_playing_info(media_tracker.avrcp_cid, &tracks[data_source], sizeof(tracks)/si… in stdin_process()
1008 data_source = STREAM_MOD; in stdin_process()
/btstack/platform/corefoundation/
H A Dbtstack_run_loop_corefoundation.m106 static void btstack_run_loop_corefoundation_add_data_source(btstack_data_source_t *data_source){
117 // store our data_source in socket context
120 socketContext.info = data_source;
123 …llback_types = btstack_run_loop_corefoundation_option_flags_for_callback_types(data_source->flags);
126 data_source->source.fd,
147 data_source->item.next = (void *) references;