libimobiledevice
1.3.0
|
WebKit Remote Debugging. More...
Macros | |
#define | WEBINSPECTOR_SERVICE_NAME "com.apple.webinspector" |
Typedefs | |
typedef struct webinspector_client_private | webinspector_client_private |
typedef webinspector_client_private * | webinspector_client_t |
The client handle. | |
Enumerations | |
enum | webinspector_error_t { WEBINSPECTOR_E_SUCCESS = 0, WEBINSPECTOR_E_INVALID_ARG = -1, WEBINSPECTOR_E_PLIST_ERROR = -2, WEBINSPECTOR_E_MUX_ERROR = -3, WEBINSPECTOR_E_SSL_ERROR = -4, WEBINSPECTOR_E_RECEIVE_TIMEOUT = -5, WEBINSPECTOR_E_NOT_ENOUGH_DATA = -6, WEBINSPECTOR_E_UNKNOWN_ERROR = -256 } |
Error Codes. | |
Functions | |
webinspector_error_t | webinspector_client_new (idevice_t device, lockdownd_service_descriptor_t service, webinspector_client_t *client) |
Connects to the webinspector service on the specified device. More... | |
webinspector_error_t | webinspector_client_start_service (idevice_t device, webinspector_client_t *client, const char *label) |
Starts a new webinspector service on the specified device and connects to it. More... | |
webinspector_error_t | webinspector_client_free (webinspector_client_t client) |
Disconnects a webinspector client from the device and frees up the webinspector client data. More... | |
webinspector_error_t | webinspector_send (webinspector_client_t client, plist_t plist) |
Sends a plist to the service. More... | |
webinspector_error_t | webinspector_receive (webinspector_client_t client, plist_t *plist) |
Receives a plist from the service. More... | |
webinspector_error_t | webinspector_receive_with_timeout (webinspector_client_t client, plist_t *plist, uint32_t timeout_ms) |
Receives a plist using the given webinspector client. More... | |
WebKit Remote Debugging.
webinspector_error_t webinspector_client_free | ( | webinspector_client_t | client | ) |
Disconnects a webinspector client from the device and frees up the webinspector client data.
client | The webinspector client to disconnect and free. |
webinspector_error_t webinspector_client_new | ( | idevice_t | device, |
lockdownd_service_descriptor_t | service, | ||
webinspector_client_t * | client | ||
) |
Connects to the webinspector service on the specified device.
device | The device to connect to. |
service | The service descriptor returned by lockdownd_start_service. |
client | Pointer that will point to a newly allocated webinspector_client_t upon successful return. Must be freed using webinspector_client_free() after use. |
webinspector_error_t webinspector_client_start_service | ( | idevice_t | device, |
webinspector_client_t * | client, | ||
const char * | label | ||
) |
Starts a new webinspector service on the specified device and connects to it.
device | The device to connect to. |
client | Pointer that will point to a newly allocated webinspector_client_t upon successful return. Must be freed using webinspector_client_free() after use. |
label | The label to use for communication. Usually the program name. Pass NULL to disable sending the label in requests to lockdownd. |
webinspector_error_t webinspector_receive | ( | webinspector_client_t | client, |
plist_t * | plist | ||
) |
Receives a plist from the service.
client | The webinspector client |
plist | The plist to store the received data |
webinspector_error_t webinspector_receive_with_timeout | ( | webinspector_client_t | client, |
plist_t * | plist, | ||
uint32_t | timeout_ms | ||
) |
Receives a plist using the given webinspector client.
client | The webinspector client to use for receiving |
plist | pointer to a plist_t that will point to the received plist upon successful return |
timeout | Maximum time in milliseconds to wait for data. |
webinspector_error_t webinspector_send | ( | webinspector_client_t | client, |
plist_t | plist | ||
) |
Sends a plist to the service.
client | The webinspector client |
plist | The plist to send |