summaryrefslogtreecommitdiffstats
path: root/src/heartbeat.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-03 15:51:43 +0200
committerGravatar Martin Szulecki2014-10-03 16:29:42 +0200
commit4c4bbd31f52845de70f5b828121eeea62f8b4514 (patch)
tree6655c2eeba4a9865752523e68d73e982e8a0d515 /src/heartbeat.c
parentd335f9350eef7b0140a249f92b791dc88b2900e5 (diff)
downloadlibimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz
libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2
Avoid exporting non-public symbols
Diffstat (limited to 'src/heartbeat.c')
-rw-r--r--src/heartbeat.c12
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
61heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t * client) 61LIBIMOBILEDEVICE_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
88heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label) 88LIBIMOBILEDEVICE_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
95heartbeat_error_t heartbeat_client_free(heartbeat_client_t client) 95LIBIMOBILEDEVICE_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
106heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist) 106LIBIMOBILEDEVICE_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
121heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist) 121LIBIMOBILEDEVICE_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
126heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t * plist, uint32_t timeout_ms) 126LIBIMOBILEDEVICE_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;