def _get_apis_from_headers(sdk, all_headers, dumpType):
    framework_apis = []
    for header in all_headers:
        print "_get_apis_from_headers %s\tsdk version %s\twhit tool %s ..." % (
            header, sdk, dumpType)
        #get apis from .h file
        if (dumpType == "class-dump"):
            apis = api_helpers.get_apis_of_file(header[2])
        else:  #nm
            apis = nm_helpers.get_apis_of_file(header[2])

        for api in apis:
            class_name = api["class"] if api["class"] != "ctype" else header[1]
            method_list = api["methods"]
            m_type = api["type"]
            for m in method_list:
                tmp_api = {}
                tmp_api['api_name'] = m
                tmp_api['class_name'] = class_name
                tmp_api['type'] = m_type
                tmp_api['header_file'] = header[1]
                tmp_api['sdk'] = sdk
                tmp_api['framework'] = header[0]
                framework_apis.append(tmp_api)

    return framework_apis
def _get_apis_from_headers(sdk, all_headers, dumpType):
    framework_apis = []
    for header in all_headers:
        print "_get_apis_from_headers %s\tsdk version %s\twhit tool %s ..." % (header, sdk, dumpType)
        #get apis from .h file
        if (dumpType == "class-dump"):
            apis = api_helpers.get_apis_of_file(header[2])
        else:#nm
            apis = nm_helpers.get_apis_of_file(header[2])
        
        for api in apis:
            class_name = api["class"] if api["class"] != "ctype" else header[1]
            method_list = api["methods"]
            m_type = api["type"]
            for m in method_list:
                tmp_api = {}
                tmp_api['api_name'] = m
                tmp_api['class_name'] = class_name
                tmp_api['type'] = m_type
                tmp_api['header_file'] = header[1]
                tmp_api['sdk'] = sdk
                tmp_api['framework'] = header[0]
                framework_apis.append(tmp_api)
               
    return framework_apis
def _get_apis_from_headers(sdk, all_headers):
    framework_apis = []
    for header in all_headers:
        #get apis from .h file
        apis = api_helpers.get_apis_of_file(header[2])
        
        for api in apis:
            class_name = api["class"] if api["class"] != "ctype" else header[1]
            method_list = api["methods"]
            m_type = api["type"]
            for m in method_list:
                tmp_api = {}
                tmp_api['api_name'] = m
                tmp_api['class_name'] = class_name
                tmp_api['type'] = m_type
                tmp_api['header_file'] = header[1]
                tmp_api['sdk'] = sdk
                tmp_api['framework'] = header[0]
                framework_apis.append(tmp_api)
               
    return framework_apis