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 c761070..1d043f1 100644 --- a/src/sbservices.c +++ b/src/sbservices.c | |||
| @@ -167,9 +167,9 @@ sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t | |||
| 167 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; | 167 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; |
| 168 | 168 | ||
| 169 | plist_t dict = plist_new_dict(); | 169 | plist_t dict = plist_new_dict(); |
| 170 | plist_dict_insert_item(dict, "command", plist_new_string("getIconState")); | 170 | plist_dict_set_item(dict, "command", plist_new_string("getIconState")); |
| 171 | if (format_version) { | 171 | if (format_version) { |
| 172 | plist_dict_insert_item(dict, "formatVersion", plist_new_string(format_version)); | 172 | plist_dict_set_item(dict, "formatVersion", plist_new_string(format_version)); |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | sbs_lock(client); | 175 | sbs_lock(client); |
| @@ -216,8 +216,8 @@ sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t | |||
| 216 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; | 216 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; |
| 217 | 217 | ||
| 218 | plist_t dict = plist_new_dict(); | 218 | plist_t dict = plist_new_dict(); |
| 219 | plist_dict_insert_item(dict, "command", plist_new_string("setIconState")); | 219 | plist_dict_set_item(dict, "command", plist_new_string("setIconState")); |
| 220 | plist_dict_insert_item(dict, "iconState", plist_copy(newstate)); | 220 | plist_dict_set_item(dict, "iconState", plist_copy(newstate)); |
| 221 | 221 | ||
| 222 | sbs_lock(client); | 222 | sbs_lock(client); |
| 223 | 223 | ||
| @@ -257,8 +257,8 @@ sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const | |||
| 257 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; | 257 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; |
| 258 | 258 | ||
| 259 | plist_t dict = plist_new_dict(); | 259 | plist_t dict = plist_new_dict(); |
| 260 | plist_dict_insert_item(dict, "command", plist_new_string("getIconPNGData")); | 260 | plist_dict_set_item(dict, "command", plist_new_string("getIconPNGData")); |
| 261 | plist_dict_insert_item(dict, "bundleId", plist_new_string(bundleId)); | 261 | plist_dict_set_item(dict, "bundleId", plist_new_string(bundleId)); |
| 262 | 262 | ||
| 263 | sbs_lock(client); | 263 | sbs_lock(client); |
| 264 | 264 | ||
| @@ -303,7 +303,7 @@ sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t clie | |||
| 303 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; | 303 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; |
| 304 | 304 | ||
| 305 | plist_t dict = plist_new_dict(); | 305 | plist_t dict = plist_new_dict(); |
| 306 | plist_dict_insert_item(dict, "command", plist_new_string("getInterfaceOrientation")); | 306 | plist_dict_set_item(dict, "command", plist_new_string("getInterfaceOrientation")); |
| 307 | 307 | ||
| 308 | sbs_lock(client); | 308 | sbs_lock(client); |
| 309 | 309 | ||
| @@ -355,7 +355,7 @@ sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_clien | |||
| 355 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; | 355 | sbservices_error_t res = SBSERVICES_E_UNKNOWN_ERROR; |
| 356 | 356 | ||
| 357 | plist_t dict = plist_new_dict(); | 357 | plist_t dict = plist_new_dict(); |
| 358 | plist_dict_insert_item(dict, "command", plist_new_string("getHomeScreenWallpaperPNGData")); | 358 | plist_dict_set_item(dict, "command", plist_new_string("getHomeScreenWallpaperPNGData")); |
| 359 | 359 | ||
| 360 | sbs_lock(client); | 360 | sbs_lock(client); |
| 361 | 361 | ||
