def get_qzone_methods(app): class_dump = "/usr/local/bin/class-dump %s" % app dump_result = subprocess.check_output(class_dump.split()) ret_methods = set() methods = extract(dump_result) for m in methods: ret_methods = ret_methods.union(set(m["methods"])) return ret_methods
def get_apis(filepath): """ get the methods of file Args: header file path(absolute) Returns: methods list """ with open(filepath) as f: text = f.read() apis = extract(text) return apis return []