char* SDMDaodanStorePath(char *targetPath) { char *storage = SDMDaodanInternalAppStoreDirectory(targetPath); char *launchTime = SDMGetCurrentDateString(); storage = realloc(storage, sizeof(char)*(strlen(storage)+0x1+strlen(launchTime))); sprintf(storage,"%s%s/",storage,launchTime); free(launchTime); return storage; }
SDMMD_AFCConnectionRef SDMMD_AFCConnectionCreate(SDMMD_AMConnectionRef conn) { SDMMD_AFCConnectionRef afc = calloc(1, sizeof(struct sdmmd_AFCConnectionClass)); afc->handle = conn; CFStringRef name = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%s.%s.%s"), "com.samdmarshall.sdmmobiledevice.afc", SDMCFStringGetString((conn->ivars.device)->ivars.unique_device_id), SDMCFStringGetString(SDMGetCurrentDateString())); afc->operationQueue = dispatch_queue_create(SDMCFStringGetString(name), NULL); afc->operationCount = 0; return afc; }