diff options
| author | 2012-04-07 18:20:47 +0200 | |
|---|---|---|
| committer | 2012-04-07 18:20:47 +0200 | |
| commit | 1c39477bba4c2e88fd193a03c18209eb7db91f75 (patch) | |
| tree | f801204be6a8bdfe2817096232a8eaf8e485dea9 /include/libimobiledevice/sbservices.h | |
| parent | a3d02692d3772767ae847ed2f32c1203cfb7e42a (diff) | |
| download | libimobiledevice-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.h | 12 |
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 | /*@{*/ | ||
| 44 | typedef 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. */ |
| 43 | typedef int16_t sbservices_error_t; | 54 | typedef int16_t sbservices_error_t; |
| 44 | 55 | ||
| @@ -51,6 +62,7 @@ sbservices_error_t sbservices_client_free(sbservices_client_t client); | |||
| 51 | sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version); | 62 | sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version); |
| 52 | sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate); | 63 | sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate); |
| 53 | sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); | 64 | sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); |
| 65 | sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation); | ||
| 54 | sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize); | 66 | sbservices_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 |
