diff options
Diffstat (limited to 'src/sbservices.c')
-rw-r--r-- | src/sbservices.c | 16 |
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 | ||
82 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client) | 82 | sbservices_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 | ||
98 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label) | 98 | sbservices_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 | ||
105 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_client_free(sbservices_client_t client) | 105 | sbservices_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 | ||
118 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version) | 118 | sbservices_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 | ||
158 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate) | 158 | sbservices_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 | ||
187 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize) | 187 | sbservices_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 | ||
224 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation) | 224 | sbservices_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 | ||
262 | LIBIMOBILEDEVICE_API sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize) | 262 | sbservices_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; |