From 9426dd3269d1839e1ae0df2633d9243882bfbeb9 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Wed, 30 Jan 2013 05:59:48 +0000 Subject: [PATCH] Add new interface for changing color need_to_update function can returns network status flag. Change-Id: I7b7b2637c301c79a27034eec1d2b1a48c6fbedaa --- include/livebox.h | 7 ++++++- packaging/liblivebox.spec | 2 +- src/livebox.c | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/livebox.h b/include/livebox.h index 3479af8..311403f 100644 --- a/include/livebox.h +++ b/include/livebox.h @@ -28,10 +28,14 @@ struct livebox_buffer; /* Defined by provider */ * Return values of livebox programming interfaces. */ extern const int DONE; /*!< Operation is successfully done */ -extern const int NEED_TO_SCHEDULE; /*!< Need to call the livebox_need_to_update and livebox_update_content */ extern const int OUTPUT_UPDATED; /*!< Contents is updated */ + +extern const int NEED_TO_SCHEDULE; /*!< Need to call the livebox_need_to_update and livebox_update_content */ extern const int NEED_TO_CREATE; /*!< Need to create a new instance */ extern const int NEED_TO_DESTROY; /*!< Need to destroy this instance */ +extern const int NEED_TO_UPDATE; + +extern const int USE_NET; /*!< Using network */ extern const int LB_SYS_EVENT_FONT_CHANGED; /*!< System font is changed */ extern const int LB_SYS_EVENT_LANG_CHANGED; /*!< System language is changed */ @@ -39,6 +43,7 @@ extern const int LB_SYS_EVENT_TIME_CHANGED; /*!< System time is changed */ extern const int LB_SYS_EVENT_PAUSED; extern const int LB_SYS_EVENT_RESUMED; +#define LB_DESC_TYPE_COLOR "color" #define LB_DESC_TYPE_TEXT "text" #define LB_DESC_TYPE_IMAGE "image" #define LB_DESC_TYPE_SIGNAL "signal" diff --git a/packaging/liblivebox.spec b/packaging/liblivebox.spec index f4156e4..4270930 100644 --- a/packaging/liblivebox.spec +++ b/packaging/liblivebox.spec @@ -1,6 +1,6 @@ Name: liblivebox Summary: Library for the development of a livebox -Version: 0.1.11 +Version: 0.1.13 Release: 1 Group: main/app License: Flora License diff --git a/src/livebox.c b/src/livebox.c index 61a20b5..6a7b066 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -62,10 +62,14 @@ struct livebox_desc { }; EAPI const int DONE = 0x00; -EAPI const int NEED_TO_SCHEDULE = 0x01; EAPI const int OUTPUT_UPDATED = 0x02; +EAPI const int USE_NET = 0x04; + +EAPI const int NEED_TO_SCHEDULE = 0x01; EAPI const int NEED_TO_CREATE = 0x01; EAPI const int NEED_TO_DESTROY = 0x01; +EAPI const int NEED_TO_UPDATE = 0x01; + EAPI const int LB_SYS_EVENT_FONT_CHANGED = 0x01; EAPI const int LB_SYS_EVENT_LANG_CHANGED = 0x02; EAPI const int LB_SYS_EVENT_TIME_CHANGED = 0x04; -- 2.7.4