extern "C" {
#endif
-#define NR_OF_SIZE_LIST 7
+#define NR_OF_SIZE_LIST 10
enum livebox_size_type {
- LB_SIZE_TYPE_1x1 = 0x01,
- LB_SIZE_TYPE_2x1 = 0x02,
- LB_SIZE_TYPE_2x2 = 0x04,
- LB_SIZE_TYPE_4x1 = 0x08,
- LB_SIZE_TYPE_4x2 = 0x10,
- LB_SIZE_TYPE_4x3 = 0x20,
- LB_SIZE_TYPE_4x4 = 0x40,
- LB_SIZE_TYPE_UNKNOWN = 0xFF,
+ LB_SIZE_TYPE_1x1 = 0x0001,
+ LB_SIZE_TYPE_2x1 = 0x0002,
+ LB_SIZE_TYPE_2x2 = 0x0004,
+ LB_SIZE_TYPE_4x1 = 0x0008,
+ LB_SIZE_TYPE_4x2 = 0x0010,
+ LB_SIZE_TYPE_4x3 = 0x0020,
+ LB_SIZE_TYPE_4x4 = 0x0040,
+ LB_SIZE_TYPE_EASY_1x1 = 0x0100,
+ LB_SIZE_TYPE_EASY_3x1 = 0x0200,
+ LB_SIZE_TYPE_EASY_3x3 = 0x0400,
+ LB_SIZE_TYPE_UNKNOWN = 0xFFFF,
};
/*!
Name: liblivebox-service
-Summary: Library for the development of a livebox service
-Version: 0.2.13
+Summary: Service API for gathering installed livebox information.
+Version: 0.3.0
Release: 1
-Group: main/app
+Group: framework/livebox
License: Flora License
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake, gettext-tools, coreutils
BuildRequires: pkgconfig(vconf)
%description
-Livebox service library
+Service API for gathering installed livebox information
%package devel
Summary: Files for livebox service.
Requires: %{name} = %{version}-%{release}
%description devel
-Livebox service library (dev)
+Gathering the installed livebox information.
%prep
%setup -q
{ 700, 348 }, /*!< 4x2 */
{ 700, 520 }, /*!< 4x3 */
{ 700, 700 }, /*!< 4x4 */
+ { 207, 207 }, /*!< 21x21 */
+ { 645, 207 }, /*!< 23x21 */
+ { 645, 645 }, /*!< 23x23 */
};
static struct info {
} else if (width_type == 4 && height_type == 4) {
DbgPrint("4x4 Updated to %dx%d\n", width, height);
idx = 6;
+ } else if (width_type == 21 && height_type == 21) {
+ DbgPrint("Easy 1x1 Updated to %dx%d\n", width, height);
+ idx = 7;
+ } else if (width_type == 23 && height_type == 21) {
+ DbgPrint("Easy 3x1 Updated to %dx%d\n", width, height);
+ idx = 8;
+ } else if (width_type == 23 && height_type == 23) {
+ DbgPrint("Easy 3x3 Updated to %dx%d\n", width, height);
+ idx = 9;
} else {
ErrPrint("Unknown size type: %dx%d (%dx%d)\n", width_type, height_type, width, height);
return 0;
case LB_SIZE_TYPE_4x4: /*!< 700x700 */
idx = 6;
break;
+ case LB_SIZE_TYPE_EASY_1x1: /*< 207x207 */
+ idx = 7;
+ break;
+ case LB_SIZE_TYPE_EASY_3x1: /*!< 645x207 */
+ idx = 8;
+ break;
+ case LB_SIZE_TYPE_EASY_3x3: /*!< 645x645 */
+ idx = 9;
+ break;
default:
return -EINVAL;
}
return LB_SIZE_TYPE_4x3;
case 6:
return LB_SIZE_TYPE_4x4;
+ case 7:
+ return LB_SIZE_TYPE_EASY_1x1;
+ case 8:
+ return LB_SIZE_TYPE_EASY_3x1;
+ case 9:
+ return LB_SIZE_TYPE_EASY_3x3;
default:
break;
}