libimobiledevice  1.3.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 (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
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.