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 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 | ||
| 79 | sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client) | 79 | LIBIMOBILEDEVICE_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 | ||
| 95 | sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t * client, const char* label) | 95 | LIBIMOBILEDEVICE_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 | ||
| 102 | sbservices_error_t sbservices_client_free(sbservices_client_t client) | 102 | LIBIMOBILEDEVICE_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 | ||
| 115 | sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version) | 115 | LIBIMOBILEDEVICE_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 | ||
| 155 | sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate) | 155 | LIBIMOBILEDEVICE_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 | ||
| 181 | sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize) | 181 | LIBIMOBILEDEVICE_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 | ||
| 218 | sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation) | 218 | LIBIMOBILEDEVICE_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 | ||
| 256 | sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize) | 256 | LIBIMOBILEDEVICE_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; |
