Home
last modified time | relevance | path

Searched refs:stdin_source (Results 1 – 2 of 2) sorted by relevance

/btstack/platform/windows/
H A Dbtstack_stdin_windows.c58 static btstack_data_source_t stdin_source; variable
70 SignalObjectAndWait(stdin_source.source.handle, key_processed_handle, INFINITE, FALSE); in stdin_reader_thread_process()
99 stdin_source.source.handle = CreateEvent(NULL, FALSE, FALSE, NULL); in btstack_stdin_windows_init()
104 btstack_run_loop_enable_data_source_callbacks(&stdin_source, DATA_SOURCE_CALLBACK_READ); in btstack_stdin_windows_init()
105 btstack_run_loop_set_data_source_handler(&stdin_source, stdin_process); in btstack_stdin_windows_init()
106 btstack_run_loop_add_data_source(&stdin_source); in btstack_stdin_windows_init()
125 btstack_run_loop_remove_data_source(&stdin_source); in btstack_stdin_reset()
133 CloseHandle(stdin_source.source.handle); in btstack_stdin_reset()
/btstack/platform/posix/
H A Dbtstack_stdin_posix.c49 static btstack_data_source_t stdin_source; variable
59 int result = read(stdin_source.source.fd, &data, 1); in stdin_process()
86 btstack_run_loop_set_data_source_fd(&stdin_source, 0); // stdin in btstack_stdin_setup()
88 btstack_run_loop_enable_data_source_callbacks(&stdin_source, DATA_SOURCE_CALLBACK_READ); in btstack_stdin_setup()
89 btstack_run_loop_set_data_source_handler(&stdin_source, stdin_process); in btstack_stdin_setup()
90 btstack_run_loop_add_data_source(&stdin_source); in btstack_stdin_setup()
100 btstack_run_loop_remove_data_source(&stdin_source); in btstack_stdin_reset()