summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/sbservices.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-04-07 18:20:47 +0200
committerGravatar Martin Szulecki2012-04-07 18:20:47 +0200
commit1c39477bba4c2e88fd193a03c18209eb7db91f75 (patch)
treef801204be6a8bdfe2817096232a8eaf8e485dea9 /include/libimobiledevice/sbservices.h
parenta3d02692d3772767ae847ed2f32c1203cfb7e42a (diff)
downloadlibimobiledevice-1c39477bba4c2e88fd193a03c18209eb7db91f75.tar.gz
libimobiledevice-1c39477bba4c2e88fd193a03c18209eb7db91f75.tar.bz2
sbservices: Implement retrieving interface orientation from device
Diffstat (limited to 'include/libimobiledevice/sbservices.h')
-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" {
#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