File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ mach_error_t AMDeviceEnterRecovery(struct am_device *device);
432
432
mach_error_t AMDeviceDisconnect (struct am_device * device );
433
433
mach_error_t AMDeviceRetain (struct am_device * device );
434
434
mach_error_t AMDeviceRelease (struct am_device * device );
435
- CFStringRef AMDeviceCopyValue (struct am_device * device , unsigned int , CFStringRef cfstring );
435
+ CFStringRef AMDeviceCopyValue (struct am_device * device , void * , CFStringRef cfstring );
436
436
CFStringRef AMDeviceCopyDeviceIdentifier (struct am_device * device );
437
437
438
438
typedef void (* notify_callback )(CFStringRef notification , void * data );
Original file line number Diff line number Diff line change @@ -1350,7 +1350,7 @@ void get_battery_level(AMDeviceRef device)
1350
1350
check_error (AMDeviceValidatePairing (device));
1351
1351
check_error (AMDeviceStartSession (device));
1352
1352
1353
- CFStringRef result = AMDeviceCopyValue (device, @" com.apple.mobile.battery" , @" BatteryCurrentCapacity" );
1353
+ CFStringRef result = AMDeviceCopyValue (device, ( void *) @" com.apple.mobile.battery" , (__bridge CFStringRef) @" BatteryCurrentCapacity" );
1354
1354
NSLogOut (@" BatteryCurrentCapacity:%@ " ,result);
1355
1355
CFRelease (result);
1356
1356
You can’t perform that action at this time.
0 commit comments