doc: tidy function signature, improve api parser

This commit is contained in:
Matthias Ringwald 2017-01-10 13:56:21 +01:00
parent b49b524c9b
commit 1934b58658
2 changed files with 9 additions and 3 deletions

View File

@ -160,15 +160,21 @@ def createIndex(btstackfolder, apis, githubfolder):
functions[ref_function.group(1)] = codeReference(ref_function.group(1), githubfolder, api_tuple[0], linenr)
continue
function = re.match('(.*?)\(.*\(*.*;\n', line)
function = re.match('(.*?)\s*\(.*\(*.*;\n', line)
if function:
parts = function.group(1).split(" ");
name = parts[len(parts)-1]
if len(name) == 0:
print(parts);
sys.exit(10)
functions[name] = codeReference( name, githubfolder, api_tuple[0], linenr)
continue
function = re.match('.(.*?)\(.*\(*.*', line)
function = re.match('.(.*?)\s*\(.*\(*.*', line)
if function:
if len(name) == 0:
print(parts);
sys.exit(10)
parts = function.group(1).split(" ");
name = parts[len(parts)-1]
multiline_function_def = 1

View File

@ -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_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);
/**