libimobiledevice  1.4.0
API Documentation - Return to Homepage

◆ idevice_get_device_version()

unsigned int idevice_get_device_version ( idevice_t device)

Returns the device ProductVersion in numerical form, where "X.Y.Z" will be returned as (X << 16) | (Y << 8) | Z .

Use IDEVICE_DEVICE_VERSION macro for easy version comparison.

See also
IDEVICE_DEVICE_VERSION
Parameters
clientInitialized device client
Returns
A numerical representation of the X.Y.Z ProductVersion string or 0 if the version cannot be retrieved.