diff --git a/dyld/extract.go b/dyld/extract.go index 6d5587d7d..aaecd219d 100644 --- a/dyld/extract.go +++ b/dyld/extract.go @@ -12,14 +12,12 @@ package dyld #include int dsc_extract(void *f, const char* shared_cache_file_path, const char* extraction_root_path){ - int (*extractor_proc)(const char* shared_cache_file_path, - const char* extraction_root_path, + int (*extractor_proc)(const char* shared_cache_file_path, const char* extraction_root_path, void (^progress)(unsigned current, unsigned total)); - extractor_proc = (int (*)(const char *))f; - int result = (*extractor_proc)(shared_cache_file_path, - extraction_root_path, + extractor_proc = (int (*)(const char *))f; + int result = (*extractor_proc)(shared_cache_file_path, extraction_root_path, ^(unsigned c, unsigned total) { printf("%d/%d\n", c, total); }); - return result; + return result; } */ import "C"