summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-05-23 15:00:14 +0200
committerGravatar Martin Szulecki2013-05-23 15:00:14 +0200
commitb1c41365ef0dbf294b12b691d48d6988e578d66d (patch)
tree88daf9c8b6ef710f75db3d5330d5b8d8fc976a94 /src
parentabad8cbf298a09627eda4a53024907cef92aa01f (diff)
downloadlibimobiledevice-b1c41365ef0dbf294b12b691d48d6988e578d66d.tar.gz
libimobiledevice-b1c41365ef0dbf294b12b691d48d6988e578d66d.tar.bz2
syslog_relay: Remove syslog_relay_send() as the service is read-only
Diffstat (limited to 'src')
-rw-r--r--src/syslog_relay.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/syslog_relay.c b/src/syslog_relay.c
index 807305b..f1231e1 100644
--- a/src/syslog_relay.c
+++ b/src/syslog_relay.c
@@ -147,37 +147,6 @@ syslog_relay_error_t syslog_relay_client_free(syslog_relay_client_t client)
}
/**
- * Sends data to the service.
- *
- * @param client The syslog_relay client
- * @param data Data to send
- * @param size Size of the data to send
- * @param sent Number of bytes sent (can be NULL to ignore)
- *
- * @return SYSLOG_RELAY_E_SUCCESS on success,
- * SYSLOG_RELAY_E_INVALID_ARG when client or plist is NULL
- */
-syslog_relay_error_t syslog_relay_send(syslog_relay_client_t client, const char* data, uint32_t size, uint32_t *sent)
-{
- syslog_relay_error_t res = SYSLOG_RELAY_E_UNKNOWN_ERROR;
- int bytes = 0;
-
- if (!client || !data || (size == 0)) {
- return SYSLOG_RELAY_E_INVALID_ARG;
- }
-
- res = syslog_relay_error(service_send(client->parent, data, size, (uint32_t*)&bytes));
- if (bytes <= 0) {
- debug_info("ERROR: sending to device failed.");
- }
- if (sent) {
- *sent = (uint32_t)bytes;
- }
-
- return res;
-}
-
-/**
* Receives data from the service.
*
* @param client The syslog_relay client