libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ instproxy_status_get_error()

instproxy_error_t instproxy_status_get_error ( plist_t  status,
char **  name,
char **  description,
uint64_t *  code 
)

Gets error name, code and description from a response if available.

Parameters
statusThe dictionary status response to use.
namePointer to store the name of an error.
descriptionPointer to store error description text if available. The caller is reponsible for freeing the allocated buffer after use. If NULL is passed no description will be returned.
codePointer to store the returned error code if available. If NULL is passed no error code will be returned.
Returns
INSTPROXY_E_SUCCESS if no error is found or an INSTPROXY_E_* error value matching the error that ẃas found in the status.