|
◆ mobilebackup2_receive_message()
Receives a DL* message plist from the device.
This function is a wrapper around device_link_service_receive_message.
- Parameters
-
client | The connected MobileBackup client to use. |
msg_plist | Pointer to a plist that will be set to the contents of the message plist upon successful return. |
dlmessage | A pointer that will be set to a newly allocated char* containing the DL* string from the given plist. It is up to the caller to free the allocated memory. If this parameter is NULL it will be ignored. |
- Returns
- MOBILEBACKUP2_E_SUCCESS if a DL* message was received, MOBILEBACKUP2_E_INVALID_ARG if client or message is invalid, MOBILEBACKUP2_E_PLIST_ERROR if the received plist is invalid or is not a DL* message plist, or MOBILEBACKUP2_E_MUX_ERROR if receiving from the device failed.
|