mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
doc: tidy function signature, improve api parser
This commit is contained in:
parent
b49b524c9b
commit
1934b58658
@ -160,15 +160,21 @@ def createIndex(btstackfolder, apis, githubfolder):
|
|||||||
functions[ref_function.group(1)] = codeReference(ref_function.group(1), githubfolder, api_tuple[0], linenr)
|
functions[ref_function.group(1)] = codeReference(ref_function.group(1), githubfolder, api_tuple[0], linenr)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
function = re.match('(.*?)\(.*\(*.*;\n', line)
|
function = re.match('(.*?)\s*\(.*\(*.*;\n', line)
|
||||||
if function:
|
if function:
|
||||||
parts = function.group(1).split(" ");
|
parts = function.group(1).split(" ");
|
||||||
name = parts[len(parts)-1]
|
name = parts[len(parts)-1]
|
||||||
|
if len(name) == 0:
|
||||||
|
print(parts);
|
||||||
|
sys.exit(10)
|
||||||
functions[name] = codeReference( name, githubfolder, api_tuple[0], linenr)
|
functions[name] = codeReference( name, githubfolder, api_tuple[0], linenr)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
function = re.match('.(.*?)\(.*\(*.*', line)
|
function = re.match('.(.*?)\s*\(.*\(*.*', line)
|
||||||
if function:
|
if function:
|
||||||
|
if len(name) == 0:
|
||||||
|
print(parts);
|
||||||
|
sys.exit(10)
|
||||||
parts = function.group(1).split(" ");
|
parts = function.group(1).split(" ");
|
||||||
name = parts[len(parts)-1]
|
name = parts[len(parts)-1]
|
||||||
multiline_function_def = 1
|
multiline_function_def = 1
|
||||||
|
@ -249,7 +249,7 @@ uint8_t gatt_client_discover_characteristics_for_service(btstack_packet_handler_
|
|||||||
*/
|
*/
|
||||||
uint8_t gatt_client_discover_characteristics_for_handle_range_by_uuid16(btstack_packet_handler_t callback, hci_con_handle_t con_handle, uint16_t start_handle, uint16_t end_handle, uint16_t uuid16);
|
uint8_t gatt_client_discover_characteristics_for_handle_range_by_uuid16(btstack_packet_handler_t callback, hci_con_handle_t con_handle, uint16_t start_handle, uint16_t end_handle, uint16_t uuid16);
|
||||||
uint8_t gatt_client_discover_characteristics_for_handle_range_by_uuid128(btstack_packet_handler_t callback, hci_con_handle_t con_handle, uint16_t start_handle, uint16_t end_handle, uint8_t * uuid);
|
uint8_t gatt_client_discover_characteristics_for_handle_range_by_uuid128(btstack_packet_handler_t callback, hci_con_handle_t con_handle, uint16_t start_handle, uint16_t end_handle, uint8_t * uuid);
|
||||||
uint8_t gatt_client_discover_characteristics_for_service_by_uuid16 (btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_service_t *service, uint16_t uuid16);
|
uint8_t gatt_client_discover_characteristics_for_service_by_uuid16(btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_service_t *service, uint16_t uuid16);
|
||||||
uint8_t gatt_client_discover_characteristics_for_service_by_uuid128(btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_service_t *service, uint8_t * uuid128);
|
uint8_t gatt_client_discover_characteristics_for_service_by_uuid128(btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_service_t *service, uint8_t * uuid128);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user