diff options
Diffstat (limited to 'dev/syslog_relay.c')
| -rw-r--r-- | dev/syslog_relay.c | 9 |
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 @@ | |||
| 27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
| 28 | 28 | ||
| 29 | #include <libiphone/libiphone.h> | 29 | #include <libiphone/libiphone.h> |
| 30 | #include <libiphone/lockdown.h> | ||
| 30 | #include <usbmuxd.h> | 31 | #include <usbmuxd.h> |
| 31 | 32 | ||
| 32 | static int quit_flag = 0; | 33 | static int quit_flag = 0; |
| @@ -44,7 +45,7 @@ static void clean_exit(int sig) | |||
| 44 | 45 | ||
| 45 | int main(int argc, char *argv[]) | 46 | int main(int argc, char *argv[]) |
| 46 | { | 47 | { |
| 47 | iphone_lckd_client_t control = NULL; | 48 | lockdownd_client_t client = NULL; |
| 48 | iphone_device_t phone = NULL; | 49 | iphone_device_t phone = NULL; |
| 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; | 50 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; |
| 50 | int i; | 51 | int i; |
| @@ -99,15 +100,15 @@ int main(int argc, char *argv[]) | |||
| 99 | } | 100 | } |
| 100 | } | 101 | } |
| 101 | 102 | ||
| 102 | if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) { | 103 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { |
| 103 | iphone_free_device(phone); | 104 | iphone_free_device(phone); |
| 104 | return -1; | 105 | return -1; |
| 105 | } | 106 | } |
| 106 | 107 | ||
| 107 | /* start syslog_relay service and retrieve port */ | 108 | /* start syslog_relay service and retrieve port */ |
| 108 | ret = iphone_lckd_start_service(control, "com.apple.syslog_relay", &port); | 109 | ret = lockdownd_start_service(client, "com.apple.syslog_relay", &port); |
| 109 | if ((ret == IPHONE_E_SUCCESS) && port) { | 110 | if ((ret == IPHONE_E_SUCCESS) && port) { |
| 110 | iphone_lckd_free_client(control); | 111 | lockdownd_free_client(client); |
| 111 | 112 | ||
| 112 | /* connect to socket relay messages */ | 113 | /* connect to socket relay messages */ |
| 113 | 114 | ||
