summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libimobiledevice/sbservices.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libimobiledevice/sbservices.h b/include/libimobiledevice/sbservices.h
index 616168e..08cb740 100644
--- a/include/libimobiledevice/sbservices.h
+++ b/include/libimobiledevice/sbservices.h
@@ -39,6 +39,17 @@ extern "C" {
39#define SBSERVICES_E_UNKNOWN_ERROR -256 39#define SBSERVICES_E_UNKNOWN_ERROR -256
40/*@}*/ 40/*@}*/
41 41
42/** @name Orientation of the user interface on the device */
43/*@{*/
44typedef enum {
45 SBSERVICES_INTERFACE_ORIENTATION_UNKNOWN = 0,
46 SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT = 1,
47 SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT_UPSIDE_DOWN = 2,
48 SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_RIGHT = 3,
49 SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_LEFT = 4
50} sbservices_interface_orientation_t;
51/*@}*/
52
42/** Represents an error code. */ 53/** Represents an error code. */
43typedef int16_t sbservices_error_t; 54typedef int16_t sbservices_error_t;
44 55
@@ -51,6 +62,7 @@ sbservices_error_t sbservices_client_free(sbservices_client_t client);
51sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version); 62sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version);
52sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate); 63sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate);
53sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); 64sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize);
65sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation);
54sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize); 66sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize);
55 67
56#ifdef __cplusplus 68#ifdef __cplusplus