mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
Merge branch 'master' of https://github.com/bluekitchen/btstack
This commit is contained in:
commit
6fb5238a50
@ -32,11 +32,11 @@ apis = [
|
||||
["src/sdp_parser.h","SDP Parser","sdpParser"],
|
||||
["src/sdp_query_rfcomm.h", "SDP RFCOMM Query", "sdpQueries"],
|
||||
["src/sdp_query_util.h","SDP Query Utils","sdpQueryUtil"],
|
||||
["include/btstack/sdp_util.h","SDP Utils", "sdpUtil"]
|
||||
["src/hsp_hf.h","HSP Headset","hspHF"],
|
||||
["include/btstack/sdp_util.h","SDP Utils", "sdpUtil"],
|
||||
["src/hsp_hs.h","HSP Headset","hspHS"],
|
||||
["src/hsp_ag.h","HSP Audio Gateway","hspAG"],
|
||||
["src/hsp_hf.h","HFP Hands-Free","hfpHF"],
|
||||
["src/hsp_ag.h","HFP Audio Gateway","hfpAG"]
|
||||
["src/hfp_hf.h","HFP Hands-Free","hfpHF"],
|
||||
["src/hfp_ag.h","HFP Audio Gateway","hfpAG"]
|
||||
]
|
||||
|
||||
functions = {}
|
||||
|
@ -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