diff options
Diffstat (limited to 'include/libimobiledevice/syslog_relay.h')
-rw-r--r-- | include/libimobiledevice/syslog_relay.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libimobiledevice/syslog_relay.h b/include/libimobiledevice/syslog_relay.h index aae5d11..0f6487a 100644 --- a/include/libimobiledevice/syslog_relay.h +++ b/include/libimobiledevice/syslog_relay.h | |||
@@ -65,7 +65,7 @@ typedef void (*syslog_relay_receive_cb_t)(char c, void *user_data); | |||
65 | * @return SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when | 65 | * @return SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when |
66 | * client is NULL, or an SYSLOG_RELAY_E_* error code otherwise. | 66 | * client is NULL, or an SYSLOG_RELAY_E_* error code otherwise. |
67 | */ | 67 | */ |
68 | syslog_relay_error_t syslog_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, syslog_relay_client_t * client); | 68 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, syslog_relay_client_t * client); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Starts a new syslog_relay service on the specified device and connects to it. | 71 | * Starts a new syslog_relay service on the specified device and connects to it. |
@@ -80,7 +80,7 @@ syslog_relay_error_t syslog_relay_client_new(idevice_t device, lockdownd_service | |||
80 | * @return SYSLOG_RELAY_E_SUCCESS on success, or an SYSLOG_RELAY_E_* error | 80 | * @return SYSLOG_RELAY_E_SUCCESS on success, or an SYSLOG_RELAY_E_* error |
81 | * code otherwise. | 81 | * code otherwise. |
82 | */ | 82 | */ |
83 | syslog_relay_error_t syslog_relay_client_start_service(idevice_t device, syslog_relay_client_t * client, const char* label); | 83 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_client_start_service(idevice_t device, syslog_relay_client_t * client, const char* label); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Disconnects a syslog_relay client from the device and frees up the | 86 | * Disconnects a syslog_relay client from the device and frees up the |
@@ -91,7 +91,7 @@ syslog_relay_error_t syslog_relay_client_start_service(idevice_t device, syslog_ | |||
91 | * @return SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when | 91 | * @return SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when |
92 | * client is NULL, or an SYSLOG_RELAY_E_* error code otherwise. | 92 | * client is NULL, or an SYSLOG_RELAY_E_* error code otherwise. |
93 | */ | 93 | */ |
94 | syslog_relay_error_t syslog_relay_client_free(syslog_relay_client_t client); | 94 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_client_free(syslog_relay_client_t client); |
95 | 95 | ||
96 | 96 | ||
97 | /** | 97 | /** |
@@ -108,7 +108,7 @@ syslog_relay_error_t syslog_relay_client_free(syslog_relay_client_t client); | |||
108 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified | 108 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified |
109 | * error occurs or a syslog capture has already been started. | 109 | * error occurs or a syslog capture has already been started. |
110 | */ | 110 | */ |
111 | syslog_relay_error_t syslog_relay_start_capture(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void* user_data); | 111 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_start_capture(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void* user_data); |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * Starts capturing the *raw* syslog of the device using a callback. | 114 | * Starts capturing the *raw* syslog of the device using a callback. |
@@ -129,7 +129,7 @@ syslog_relay_error_t syslog_relay_start_capture(syslog_relay_client_t client, sy | |||
129 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified | 129 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified |
130 | * error occurs or a syslog capture has already been started. | 130 | * error occurs or a syslog capture has already been started. |
131 | */ | 131 | */ |
132 | syslog_relay_error_t syslog_relay_start_capture_raw(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void* user_data); | 132 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_start_capture_raw(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void* user_data); |
133 | 133 | ||
134 | /** | 134 | /** |
135 | * Stops capturing the syslog of the device. | 135 | * Stops capturing the syslog of the device. |
@@ -143,7 +143,7 @@ syslog_relay_error_t syslog_relay_start_capture_raw(syslog_relay_client_t client | |||
143 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified | 143 | * invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified |
144 | * error occurs or a syslog capture has already been started. | 144 | * error occurs or a syslog capture has already been started. |
145 | */ | 145 | */ |
146 | syslog_relay_error_t syslog_relay_stop_capture(syslog_relay_client_t client); | 146 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_stop_capture(syslog_relay_client_t client); |
147 | 147 | ||
148 | /* Receiving */ | 148 | /* Receiving */ |
149 | 149 | ||
@@ -162,7 +162,7 @@ syslog_relay_error_t syslog_relay_stop_capture(syslog_relay_client_t client); | |||
162 | * occurs, or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified | 162 | * occurs, or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified |
163 | * error occurs. | 163 | * error occurs. |
164 | */ | 164 | */ |
165 | syslog_relay_error_t syslog_relay_receive_with_timeout(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout); | 165 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_receive_with_timeout(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout); |
166 | 166 | ||
167 | /** | 167 | /** |
168 | * Receives data from the service. | 168 | * Receives data from the service. |
@@ -175,7 +175,7 @@ syslog_relay_error_t syslog_relay_receive_with_timeout(syslog_relay_client_t cli | |||
175 | * @return SYSLOG_RELAY_E_SUCCESS on success, | 175 | * @return SYSLOG_RELAY_E_SUCCESS on success, |
176 | * SYSLOG_RELAY_E_INVALID_ARG when client or plist is NULL | 176 | * SYSLOG_RELAY_E_INVALID_ARG when client or plist is NULL |
177 | */ | 177 | */ |
178 | syslog_relay_error_t syslog_relay_receive(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received); | 178 | LIBIMOBILEDEVICE_API syslog_relay_error_t syslog_relay_receive(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received); |
179 | 179 | ||
180 | #ifdef __cplusplus | 180 | #ifdef __cplusplus |
181 | } | 181 | } |