diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/heartbeat.c | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
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 9a527cc..3945d73 100644 --- a/src/heartbeat.c +++ b/src/heartbeat.c | |||
@@ -62,7 +62,7 @@ static heartbeat_error_t heartbeat_error(property_list_service_error_t err) | |||
62 | return HEARTBEAT_E_UNKNOWN_ERROR; | 62 | return HEARTBEAT_E_UNKNOWN_ERROR; |
63 | } | 63 | } |
64 | 64 | ||
65 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t * client) | 65 | heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t * client) |
66 | { | 66 | { |
67 | *client = NULL; | 67 | *client = NULL; |
68 | 68 | ||
@@ -89,14 +89,14 @@ LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_new(idevice_t device, lo | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label) | 92 | heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label) |
93 | { | 93 | { |
94 | heartbeat_error_t err = HEARTBEAT_E_UNKNOWN_ERROR; | 94 | heartbeat_error_t err = HEARTBEAT_E_UNKNOWN_ERROR; |
95 | service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), &err); | 95 | service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), &err); |
96 | return err; | 96 | return err; |
97 | } | 97 | } |
98 | 98 | ||
99 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) | 99 | heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) |
100 | { | 100 | { |
101 | if (!client) | 101 | if (!client) |
102 | return HEARTBEAT_E_INVALID_ARG; | 102 | return HEARTBEAT_E_INVALID_ARG; |
@@ -107,7 +107,7 @@ LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_client_free(heartbeat_client_t | |||
107 | return err; | 107 | return err; |
108 | } | 108 | } |
109 | 109 | ||
110 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) | 110 | heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) |
111 | { | 111 | { |
112 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; | 112 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; |
113 | 113 | ||
@@ -122,12 +122,12 @@ LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_send(heartbeat_client_t client, | |||
122 | return res; | 122 | return res; |
123 | } | 123 | } |
124 | 124 | ||
125 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist) | 125 | heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist) |
126 | { | 126 | { |
127 | return heartbeat_receive_with_timeout(client, plist, 1000); | 127 | return heartbeat_receive_with_timeout(client, plist, 1000); |
128 | } | 128 | } |
129 | 129 | ||
130 | LIBIMOBILEDEVICE_API heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t * plist, uint32_t timeout_ms) | 130 | heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t * plist, uint32_t timeout_ms) |
131 | { | 131 | { |
132 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; | 132 | heartbeat_error_t res = HEARTBEAT_E_UNKNOWN_ERROR; |
133 | plist_t outplist = NULL; | 133 | plist_t outplist = NULL; |