Skip to content

Commit

Permalink
Update extract.go
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 1, 2019
1 parent 4043107 commit 6d6c487
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions dyld/extract.go
Expand Up @@ -12,14 +12,12 @@ package dyld
#include <dlfcn.h>
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"
Expand Down

0 comments on commit 6d6c487

Please sign in to comment.