summaryrefslogtreecommitdiffstats
path: root/src/sbservices.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/sbservices.c
parentd335f9350eef7b0140a249f92b791dc88b2900e5 (diff)
downloadlibimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz
libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2
Avoid exporting non-public symbols
Diffstat (limited to 'src/sbservices.c')
-rw-r--r--src/sbservices.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sbservices.c b/src/sbservices.c
index ea12e35..20f0b5f 100644
--- a/src/sbservices.c
+++ b/src/sbservices.c
@@ -76,7 +76,7 @@ static sbservices_error_t sbservices_error(property_list_service_error_t err)
76 return SBSERVICES_E_UNKNOWN_ERROR; 76 return SBSERVICES_E_UNKNOWN_ERROR;
77} 77}
78 78
79sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client) 79LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client)
80{ 80{
81 property_list_service_client_t plistclient = NULL; 81 property_list_service_client_t plistclient = NULL;
82 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, service, &plistclient)); 82 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, service, &plistclient));
@@ -92,14 +92,14 @@ sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_des
92 return SBSERVICES_E_SUCCESS; 92 return SBSERVICES_E_SUCCESS;
93} 93}
94 94
95sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label) 95LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label)
96{ 96{
97 sbservices_error_t err = SBSERVICES_E_UNKNOWN_ERROR; 97 sbservices_error_t err = SBSERVICES_E_UNKNOWN_ERROR;
98 service_client_factory_start_service(device, SBSERVICES_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(sbservices_client_new), &err); 98 service_client_factory_start_service(device, SBSERVICES_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(sbservices_client_new), &err);
99 return err; 99 return err;
100} 100}
101 101
102sbservices_error_t sbservices_client_free(sbservices_client_t client) 102LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_free(sbservices_client_t client)
103{ 103{
104 if (!client) 104 if (!client)
105 return SBSERVICES_E_INVALID_ARG; 105 return SBSERVICES_E_INVALID_ARG;
@@ -112,7 +112,7 @@ sbservices_error_t sbservices_client_free(sbservices_client_t client)
112 return err; 112 return err;
113} 113}
114 114
115sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version) 115LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version)
116{ 116{
117 if (!client || !client->parent || !state) 117 if (!client || !client->parent || !state)
118 return SBSERVICES_E_INVALID_ARG; 118 return SBSERVICES_E_INVALID_ARG;
@@ -152,7 +152,7 @@ leave_unlock:
152 return res; 152 return res;
153} 153}
154 154
155sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate) 155LIBIMOBILEDEVICE_API sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate)
156{ 156{
157 if (!client || !client->parent || !newstate) 157 if (!client || !client->parent || !newstate)
158 return SBSERVICES_E_INVALID_ARG; 158 return SBSERVICES_E_INVALID_ARG;
@@ -178,7 +178,7 @@ sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t
178 return res; 178 return res;
179} 179}
180 180
181sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize) 181LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize)
182{ 182{
183 if (!client || !client->parent || !bundleId || !pngdata) 183 if (!client || !client->parent || !bundleId || !pngdata)
184 return SBSERVICES_E_INVALID_ARG; 184 return SBSERVICES_E_INVALID_ARG;
@@ -215,7 +215,7 @@ leave_unlock:
215 return res; 215 return res;
216} 216}
217 217
218sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation) 218LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation)
219{ 219{
220 if (!client || !client->parent || !interface_orientation) 220 if (!client || !client->parent || !interface_orientation)
221 return SBSERVICES_E_INVALID_ARG; 221 return SBSERVICES_E_INVALID_ARG;
@@ -253,7 +253,7 @@ leave_unlock:
253 return res; 253 return res;
254} 254}
255 255
256sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize) 256LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize)
257{ 257{
258 if (!client || !client->parent || !pngdata) 258 if (!client || !client->parent || !pngdata)
259 return SBSERVICES_E_INVALID_ARG; 259 return SBSERVICES_E_INVALID_ARG;