diff options
Diffstat (limited to 'src/heartbeat.c')
| -rw-r--r-- | src/heartbeat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/heartbeat.c b/src/heartbeat.c index 7654dd0..a6e70ef 100644 --- a/src/heartbeat.c +++ b/src/heartbeat.c | |||
| @@ -58,7 +58,7 @@ static heartbeat_error_t heartbeat_error(property_list_service_error_t err) | |||
| 58 | return HEARTBEAT_E_UNKNOWN_ERROR; | 58 | return HEARTBEAT_E_UNKNOWN_ERROR; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t * client) | 61 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t * client) |
| 62 | { | 62 | { |
| 63 | *client = NULL; | 63 | *client = NULL; |
| 64 | 64 | ||
| @@ -85,14 +85,14 @@ heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descr | |||
| 85 | return 0; | 85 | return 0; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label) | 88 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label) |
| 89 | { | 89 | { |
| 90 | heartbeat_error_t err = HEARTBEAT_E_UNKNOWN_ERROR; | 90 | heartbeat_error_t err = HEARTBEAT_E_UNKNOWN_ERROR; |
| 91 | service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), &err); | 91 | service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), &err); |
| 92 | return err; | 92 | return err; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) | 95 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) |
| 96 | { | 96 | { |
| 97 | if (!client) | 97 | if (!client) |
| 98 | return HEARTBEAT_E_INVALID_ARG; | 98 | return HEARTBEAT_E_INVALID_ARG; |
| @@ -103,7 +103,7 @@ heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) | |||
| 103 | return err; | 103 | return err; |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) | 106 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) |
| 107 | { | 107 | { |
| 108 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; | 108 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; |
| 109 | 109 | ||
| @@ -118,12 +118,12 @@ heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) | |||
| 118 | return res; | 118 | return res; |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist) | 121 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist) |
| 122 | { | 122 | { |
| 123 | return heartbeat_receive_with_timeout(client, plist, 1000); | 123 | return heartbeat_receive_with_timeout(client, plist, 1000); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t * plist, uint32_t timeout_ms) | 126 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t * plist, uint32_t timeout_ms) |
| 127 | { | 127 | { |
| 128 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; | 128 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; |
| 129 | plist_t outplist = NULL; | 129 | plist_t outplist = NULL; |
