libimobiledevice  1.2.0
API Documentation - Return to Homepage

◆ idevice_new()

idevice_error_t idevice_new ( idevice_t device,
const char *  udid 
)

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
deviceUpon calling this function, a pointer to a location of type idevice_t. On successful return, this location will be populated.
udidThe UDID to match.
Returns
IDEVICE_E_SUCCESS if ok, otherwise an error code.