Creates an idevice_t structure for the device specified by udid, if the device is available.
- Note
- The resulting idevice_t structure has to be freed with idevice_free() if it is no longer used.
- 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.