Creates an idevice_t structure for the device specified by UDID, if the device is available (USBMUX devices only).
- Note
- The resulting idevice_t structure has to be freed with idevice_free() if it is no longer used. If you need to connect to a device available via network, use idevice_new_with_options() and include IDEVICE_LOOKUP_NETWORK in options.
- See also
- idevice_new_with_options
- Parameters
-
device | Upon calling this function, a pointer to a location of type idevice_t. On successful return, this location will be populated. |
udid | The UDID to match. |
- Returns
- IDEVICE_E_SUCCESS if ok, otherwise an error code.