mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
java: collect hfp and hsp subevents in seperate lists
This commit is contained in:
parent
204788c830
commit
edc5c5fee9
@ -1,3 +1,4 @@
|
||||
|
||||
#!/usr/bin/env python
|
||||
# BlueKitchen GmbH (c) 2014
|
||||
|
||||
@ -50,6 +51,8 @@ def parse_defines():
|
||||
def my_parse_events(path):
|
||||
events = []
|
||||
le_events = []
|
||||
hfp_events = []
|
||||
hsp_events = []
|
||||
params = []
|
||||
event_types = set()
|
||||
format = None
|
||||
@ -68,6 +71,10 @@ def my_parse_events(path):
|
||||
if format != None:
|
||||
if key.lower().startswith('hci_subevent_'):
|
||||
le_events.append((value, key.lower().replace('hci_subevent_', 'hci_event_'), format, params))
|
||||
elif key.lower().startswith('hsp_subevent_'):
|
||||
hsp_events.append((value, key.lower().replace('hsp_subevent_', 'hsp_event_'), format, params))
|
||||
elif key.lower().startswith('hfp_subevent_'):
|
||||
hfp.append((value, key.lower().replace('hfp_subevent_', 'hfp_event_'), format, params))
|
||||
else:
|
||||
events.append((value, key, format, params))
|
||||
event_types.add(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user