libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ house_arrest_send_command()

house_arrest_error_t house_arrest_send_command ( house_arrest_client_t  client,
const char *  command,
const char *  appid 
)

Send a command to the connected house_arrest service.

Calls house_arrest_send_request() internally.

Parameters
clientThe house_arrest client to use.
commandThe command to send. Currently, only VendContainer and VendDocuments are known.
appidThe application identifier to pass along with the .
Note
If this function returns HOUSE_ARREST_E_SUCCESS it does not mean that the command was successful. To check for success or failure you need to call house_arrest_get_result().
See also
house_arrest_get_result
Returns
HOUSE_ARREST_E_SUCCESS if the command was successfully sent, HOUSE_ARREST_E_INVALID_ARG if client, command, or appid is invalid, HOUSE_ARREST_E_INVALID_MODE if the client is not in the correct mode, or HOUSE_ARREST_E_CONN_FAILED if a connection error occurred.