1 2// replace struct btstack_data_source with btstack_data_source_t in function definitions 3@@ 4identifier handler; 5identifier ds; 6typedef btstack_data_source_t; 7@@ 8- int handler(struct btstack_data_source * ds) 9+ int handler(btstack_data_source_t* ds) 10{ ... } 11 12@btstack_run_loop_set_data_source_handler@ 13identifier handler; 14expression ds; 15@@ 16btstack_run_loop_set_data_source_handler(ds, &handler); 17 18@@ 19identifier btstack_run_loop_set_data_source_handler.handler; 20identifier ds; 21typedef btstack_data_source_callback_type_t; 22@@ 23- int handler(btstack_data_source_t * ds) 24+ void handler(btstack_data_source_t * ds, btstack_data_source_callback_type_t callback_type) 25{ ... }