summaryrefslogtreecommitdiffstats
path: root/dev/syslog_relay.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-07 21:02:00 +0200
committerGravatar Matt Colyer2009-07-18 10:39:42 -0700
commitb8ce722ffaeab22e141e18907c46bbed4659d857 (patch)
treeb30563dacd1ef2699fe79af9695bf237e1e688aa /dev/syslog_relay.c
parentab8e29dafc0577203e6867329b1d3ff9095a4fb2 (diff)
downloadlibimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.gz
libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.bz2
Cleanup lockdown request API and fix docs, tools, bindings and exports
Diffstat (limited to 'dev/syslog_relay.c')
-rw-r--r--dev/syslog_relay.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/syslog_relay.c b/dev/syslog_relay.c
index 6698653..a93e85b 100644
--- a/dev/syslog_relay.c
+++ b/dev/syslog_relay.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <libiphone/libiphone.h>
+#include <libiphone/lockdown.h>
#include <usbmuxd.h>
static int quit_flag = 0;
@@ -44,7 +45,7 @@ static void clean_exit(int sig)
int main(int argc, char *argv[])
{
- iphone_lckd_client_t control = NULL;
+ lockdownd_client_t client = NULL;
iphone_device_t phone = NULL;
iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
int i;
@@ -99,15 +100,15 @@ int main(int argc, char *argv[])
}
}
- if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) {
+ if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) {
iphone_free_device(phone);
return -1;
}
/* start syslog_relay service and retrieve port */
- ret = iphone_lckd_start_service(control, "com.apple.syslog_relay", &port);
+ ret = lockdownd_start_service(client, "com.apple.syslog_relay", &port);
if ((ret == IPHONE_E_SUCCESS) && port) {
- iphone_lckd_free_client(control);
+ lockdownd_free_client(client);
/* connect to socket relay messages */