From 1c39477bba4c2e88fd193a03c18209eb7db91f75 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 7 Apr 2012 18:20:47 +0200 Subject: sbservices: Implement retrieving interface orientation from device --- include/libimobiledevice/sbservices.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/libimobiledevice/sbservices.h') 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" { #define SBSERVICES_E_UNKNOWN_ERROR -256 /*@}*/ +/** @name Orientation of the user interface on the device */ +/*@{*/ +typedef enum { + SBSERVICES_INTERFACE_ORIENTATION_UNKNOWN = 0, + SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT = 1, + SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT_UPSIDE_DOWN = 2, + SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_RIGHT = 3, + SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_LEFT = 4 +} sbservices_interface_orientation_t; +/*@}*/ + /** Represents an error code. */ typedef int16_t sbservices_error_t; @@ -51,6 +62,7 @@ sbservices_error_t sbservices_client_free(sbservices_client_t client); sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version); sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate); sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); +sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation); sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize); #ifdef __cplusplus -- cgit v1.1-32-gdbae