summaryrefslogtreecommitdiffstats
path: root/src/sbservices.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-31 02:57:11 +0100
committerGravatar Nikias Bassen2024-01-31 02:57:11 +0100
commit63bbac545efc400373a7f472fdd78174149119c3 (patch)
treef95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/sbservices.c
parentf723a44513eb5ba5797da24bc2b63d9f09600a6e (diff)
downloadlibimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz
libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2
Move LIBIMOBILEDEVICE_API to public headers
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 c7ee911..365e130 100644
--- a/src/sbservices.c
+++ b/src/sbservices.c
@@ -79,7 +79,7 @@ static sbservices_error_t sbservices_error(property_list_service_error_t err)
79 return SBSERVICES_E_UNKNOWN_ERROR; 79 return SBSERVICES_E_UNKNOWN_ERROR;
80} 80}
81 81
82LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client) 82sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client)
83{ 83{
84 property_list_service_client_t plistclient = NULL; 84 property_list_service_client_t plistclient = NULL;
85 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, service, &plistclient)); 85 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, service, &plistclient));
@@ -95,14 +95,14 @@ LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_new(idevice_t device,
95 return SBSERVICES_E_SUCCESS; 95 return SBSERVICES_E_SUCCESS;
96} 96}
97 97
98LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label) 98sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label)
99{ 99{
100 sbservices_error_t err = SBSERVICES_E_UNKNOWN_ERROR; 100 sbservices_error_t err = SBSERVICES_E_UNKNOWN_ERROR;
101 service_client_factory_start_service(device, SBSERVICES_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(sbservices_client_new), &err); 101 service_client_factory_start_service(device, SBSERVICES_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(sbservices_client_new), &err);
102 return err; 102 return err;
103} 103}
104 104
105LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_free(sbservices_client_t client) 105sbservices_error_t sbservices_client_free(sbservices_client_t client)
106{ 106{
107 if (!client) 107 if (!client)
108 return SBSERVICES_E_INVALID_ARG; 108 return SBSERVICES_E_INVALID_ARG;
@@ -115,7 +115,7 @@ LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_free(sbservices_client
115 return err; 115 return err;
116} 116}
117 117
118LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version) 118sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version)
119{ 119{
120 if (!client || !client->parent || !state) 120 if (!client || !client->parent || !state)
121 return SBSERVICES_E_INVALID_ARG; 121 return SBSERVICES_E_INVALID_ARG;
@@ -155,7 +155,7 @@ leave_unlock:
155 return res; 155 return res;
156} 156}
157 157
158LIBIMOBILEDEVICE_API sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate) 158sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate)
159{ 159{
160 if (!client || !client->parent || !newstate) 160 if (!client || !client->parent || !newstate)
161 return SBSERVICES_E_INVALID_ARG; 161 return SBSERVICES_E_INVALID_ARG;
@@ -184,7 +184,7 @@ LIBIMOBILEDEVICE_API sbservices_error_t sbservices_set_icon_state(sbservices_cli
184 return res; 184 return res;
185} 185}
186 186
187LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize) 187sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize)
188{ 188{
189 if (!client || !client->parent || !bundleId || !pngdata) 189 if (!client || !client->parent || !bundleId || !pngdata)
190 return SBSERVICES_E_INVALID_ARG; 190 return SBSERVICES_E_INVALID_ARG;
@@ -221,7 +221,7 @@ leave_unlock:
221 return res; 221 return res;
222} 222}
223 223
224LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation) 224sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation)
225{ 225{
226 if (!client || !client->parent || !interface_orientation) 226 if (!client || !client->parent || !interface_orientation)
227 return SBSERVICES_E_INVALID_ARG; 227 return SBSERVICES_E_INVALID_ARG;
@@ -259,7 +259,7 @@ leave_unlock:
259 return res; 259 return res;
260} 260}
261 261
262LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize) 262sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize)
263{ 263{
264 if (!client || !client->parent || !pngdata) 264 if (!client || !client->parent || !pngdata)
265 return SBSERVICES_E_INVALID_ARG; 265 return SBSERVICES_E_INVALID_ARG;