Rename to widget
authorKyuho Jo <kyuho.jo@samsung.com>
Thu, 12 Feb 2015 12:57:17 +0000 (21:57 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Fri, 13 Feb 2015 01:57:13 +0000 (10:57 +0900)
Change-Id: I50861985139422a9c9b355e4704c7e8cc14c9c36
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
32 files changed:
CMakeLists.txt [changed mode: 0644->0755]
LICENSE [moved from livebox/LICENSE with 100% similarity]
data/CMakeLists.txt [moved from dynamicbox/data/CMakeLists.txt with 100% similarity]
doc/widget_doc.h [moved from dynamicbox/doc/dynamicbox_doc.h with 60% similarity, mode: 0755]
dynamicbox/CMakeLists.txt [deleted file]
dynamicbox/LICENSE [deleted file]
dynamicbox/dynamicbox.pc.in [deleted file]
dynamicbox/include/internal/dynamicbox.h [deleted file]
dynamicbox/include/util.h [deleted file]
include/debug.h [moved from dynamicbox/include/debug.h with 100% similarity]
include/dlist.h [moved from dynamicbox/include/dlist.h with 100% similarity]
include/internal/widget.h [new file with mode: 0755]
include/util.h [moved from livebox/include/util.h with 100% similarity]
include/widget.h [moved from dynamicbox/include/dynamicbox.h with 54% similarity]
livebox/CMakeLists.txt [deleted file]
livebox/include/debug.h [deleted file]
livebox/include/dlist.h [deleted file]
livebox/include/dynamicbox.h [deleted file]
livebox/include/livebox.h [deleted file]
livebox/include/livebox_product.h [deleted file]
livebox/src/livebox.c [deleted file]
packaging/libwidget.manifest [moved from packaging/libdynamicbox.manifest with 100% similarity]
packaging/libwidget.spec [moved from packaging/libdynamicbox.spec with 55% similarity, mode: 0755]
patch/pixmap_ee.patch [moved from dynamicbox/patch/pixmap_ee.patch with 86% similarity, mode: 0755]
patch/pixmap_ee_widget.patch [moved from dynamicbox/patch/pixmap_ee_dbox.patch with 84% similarity, mode: 0755]
src/dlist.c [moved from dynamicbox/src/dlist.c with 100% similarity]
src/snapshot_window.c [moved from dynamicbox/src/snapshot_window.c with 86% similarity, mode: 0755]
src/util.c [moved from dynamicbox/src/util.c with 100% similarity]
src/virtual_window.c [moved from dynamicbox/src/virtual_window.c with 72% similarity, mode: 0755]
src/virtual_window_wayland.c [moved from dynamicbox/src/virtual_window_wayland.c with 75% similarity, mode: 0755]
src/widget.c [moved from dynamicbox/src/dynamicbox.c with 54% similarity, mode: 0755]
widget.pc.in [moved from livebox/livebox.pc.in with 51% similarity, mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6ee6fe4..77b0cc0
@@ -1,6 +1,88 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(widget C)
 
-ADD_SUBDIRECTORY(dynamicbox)
-ADD_SUBDIRECTORY(livebox)
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(EXEC_PREFIX "\${prefix}")
+SET(PROJECT_NAME "${PROJECT_NAME}")
+SET(LIBDIR "\${exec_prefix}/lib")
+SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}")
+SET(VERSION_MAJOR 1)
+SET(VERSION "${VERSION_MAJOR}.0.0")
 
-ADD_DEPENDENCIES(livebox dynamicbox)
+set(CMAKE_SKIP_BUILD_RPATH true)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+       dlog
+       widget_service
+       widget_provider
+       evas
+       ecore
+       elementary
+)
+
+IF (X11_SUPPORT)
+pkg_check_modules(pkgs_extra REQUIRED
+       x11
+)
+ADD_DEFINITIONS("-DHAVE_X11")
+SET(BUILD_SOURCE 
+       src/virtual_window.c
+)
+ENDIF (X11_SUPPORT)
+
+IF (WAYLAND_SUPPORT)
+ADD_DEFINITIONS("-DHAVE_WAYLAND")
+SET(BUILD_SOURCE 
+       src/virtual_window_wayland.c
+)
+ENDIF (WAYLAND_SUPPORT)
+
+FOREACH(flag ${pkgs_CFLAGS})
+       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+FOREACH(flag ${pkgs_extra_CFLAGS})
+       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g")
+
+ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ADD_DEFINITIONS("-DLOG_TAG=\"WIDGET\"")
+ADD_DEFINITIONS("-DNDEBUG")
+ADD_DEFINITIONS("-D_USE_ECORE_TIME_GET")
+ADD_DEFINITIONS("-DMASTER_PKGNAME=\"data-provider-master\"")
+ADD_DEFINITIONS("-DSLAVE_PKGNAME=\"com.samsung.data-provider-slave\"")
+#ADD_DEFINITIONS("-D_ENABLE_PERF")
+
+SET (BUILD_SOURCE
+       ${BUILD_SOURCE}
+       src/dlist.c
+       src/util.c
+       src/widget.c
+       src/snapshot_window.c
+)
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${BUILD_SOURCE})
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${VERSION})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${pkgs_extra_LDFLAGS} "-lpthread")
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
+
+CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_NAME}.pc")
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
+       
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/widget.h DESTINATION include/${PROJECT_NAME})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/internal/widget.h DESTINATION include/${PROJECT_NAME}/internal)
+
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME "lib${PROJECT_NAME}")
+       
+ADD_SUBDIRECTORY(data)
similarity index 100%
rename from livebox/LICENSE
rename to LICENSE
old mode 100644 (file)
new mode 100755 (executable)
similarity index 60%
rename from dynamicbox/doc/dynamicbox_doc.h
rename to doc/widget_doc.h
index f20bc65..9c2d72f
  */
 
 
-#ifndef __DYNAMICBOX_DOC_H__
-#define __DYNAMICBOX_DOC_H__
+#ifndef __WIDGET_DOC_H__
+#define __WIDGET_DOC_H__
 
 /**
- * @defgroup DYNAMICBOX_UTILITY_MODULE dynamicbox
+ * @defgroup WIDGET_UTILITY_MODULE widget
  * @brief Supports APIs for development of inhouse dynamic box
- * @ingroup CAPI_DYNAMICBOX_FRAMEWORK 
- * @section DYNAMICBOX_UTILITY_MODULE_HEADER Required Header
- *   \#include <dynamicbox.h>
- * @section DYNAMICBOX_UTILITY_MODULE_OVERVIEW Overview
+ * @ingroup CAPI_WIDGET_FRAMEWORK 
+ * @section WIDGET_UTILITY_MODULE_HEADER Required Header
+ *   \#include <widget.h>
+ * @section WIDGET_UTILITY_MODULE_OVERVIEW Overview
 <H1>Dynamic Box Utility functions</H1>
 
 <H2>1. Script type Dynamic Box</H2>
-If you choose the Script Type DBox, you have to use this.
+If you choose the Script Type widget, you have to use this.
 
 Dynamic Box defines its own syntax to share the content between home application and provider application.
 It is called "Description Data Syntax"
@@ -36,25 +36,25 @@ It is called "Description Data Syntax"
 To generate it you have to use following functions.
 
 @code
-struct dynamicbox_desc *desc_handle;
+struct widget_desc *desc_handle;
 int idx;
 
-desc_handle = dynamicbox_desc_open(id, 0);
+desc_handle = widget_desc_open(id, 0);
 if (!desc_handle) {
     // Error
 }
 
-dynamicbox_desc_set_size(desc_handle, id, 720, 360);
+widget_desc_set_size(desc_handle, id, 720, 360);
 
 // Loads sub-layout object into main layout
-idx = dynamicbox_desc_add_block(desc_handle, NULL, DBOX_DESC_TYPE_SCRIPT, "sub,layout", "/usr/apps/com.samsung.my-app/shared/res/dbox.edj", "sub,group");
-dynamicbox_desc_set_id(desc_handle, idx, "sub,layout");
+idx = widget_desc_add_block(desc_handle, NULL, WIDGET_DESC_TYPE_SCRIPT, "sub,layout", "/usr/apps/com.samsung.my-app/shared/res/widget.edj", "sub,group");
+widget_desc_set_id(desc_handle, idx, "sub,layout");
 
 // Set a text for sub-layout object
-dynamicbox_desc_add_block(desc_handle, "sub,layout", DBOX_DESC_TYPE_TEXT, "sub,layout,text", "Hello World", NULL);
+widget_desc_add_block(desc_handle, "sub,layout", WIDGET_DESC_TYPE_TEXT, "sub,layout,text", "Hello World", NULL);
 
 // Flushes changes, the content will be changed after close this handle.
-dynamicbox_desc_close(desc_handle);
+widget_desc_close(desc_handle);
 desc_handle = NULL;
 @endcode
 
@@ -67,7 +67,7 @@ And if it needs to propagate events to the home application, the home applicatio
 Evas_Object *parent;
 Evas_Object *win;
 
-parent = dynamicbox_get_evas_object(id, 0);
+parent = widget_get_evas_object(id, 0);
 if (!parent) {
     // Error
 }
@@ -80,7 +80,7 @@ if (!win) {
 @endcode
 
 To create a window for dynamic box,
-You have to get the parent object using dynamicbox_get_evas_object().
+You have to get the parent object using widget_get_evas_object().
 And after creating a window for dynamic box, you have to delete it.
 Its attributes will be passed to the newly created window. So you don't need keep the parent object anymore.
 
@@ -93,13 +93,13 @@ The Id's syntax is "file://ABS_PATH_OF_OUTPUT_FILE", so you should create an ima
 The Id will be assigned to every dynamic box instances.
 And those are unique.
 
-If you create an image file, you should notify it to the viewer using dynamicbox_provider_app_dbox_updated()
-it is provided by libdynamicbox_provider_app package.
+If you create an image file, you should notify it to the viewer using widget_provider_app_widget_updated()
+it is provided by libwidget_provider_app package.
 
 <H2>4. Text type Dynamic Box (Experimental)</H2>
 In case of text type, you may have no window or script file.
-The text type dynamic box only needs to generate content data using dynamicbox_desc_XXXX series APIs.
-Of course, after you prepare the desc file, you have to call dynamicbox_provider_app_dbox_updated() function too.
+The text type dynamic box only needs to generate content data using widget_desc_XXXX series APIs.
+Of course, after you prepare the desc file, you have to call widget_provider_app_widget_updated() function too.
 Then the viewer will get your updated contents and try to parse it to locate content of dynamic box to its screen.
 But, unfortunately, this type of dynamic box is not fully supported yet.
 Because it very highly depends on the viewer implementations.
@@ -107,29 +107,29 @@ So if the viewer doesn't support this type of dynamic box, you cannot do anythin
 
 To generate the text data, you can use below API set.
 
- - dynamicbox_desc_open()
- - dynamicbox_desc_set_category()
- - dynamicbox_desc_set_size()
- - dynamicbox_desc_set_id()
- - dynamicbox_desc_add_block()
- - dynamicbox_desc_del_block()
- - dynamicbox_desc_close()
+ - widget_desc_open()
+ - widget_desc_set_category()
+ - widget_desc_set_size()
+ - widget_desc_set_id()
+ - widget_desc_add_block()
+ - widget_desc_del_block()
+ - widget_desc_close()
 
 Here is a sample code for you.
 \code
 #define FOR_GBAR 1
-#define FOR_DBOX 0
+#define FOR_WIDGET 0
 
-struct dynamicbox_desc *handle;
+struct widget_desc *handle;
 int idx;
 
-handle = dynamicbox_desc_open(handle, FOR_GBAR); // The second parameter will help you choose to target, for glance bar or dynamic box?
-idx = dynamicbox_desc_add_block(handle, NULL, DBOX_DESC_TYPE_SCRIPT, "/opt/usr/apps/your.company.application/shared/resource/edje/script.edj", "sample", NULL);
-dynamicbox_desc_set_id(handle, idx, "sample");
-dynamicbox_desc_close(handle);
-dynamicbox_provider_app_dbox_updated(dbox_id, 0, 0);
+handle = widget_desc_open(handle, FOR_GBAR); // The second parameter will help you choose to target, for glance bar or dynamic box?
+idx = widget_desc_add_block(handle, NULL, WIDGET_DESC_TYPE_SCRIPT, "/opt/usr/apps/your.company.application/shared/resource/edje/script.edj", "sample", NULL);
+widget_desc_set_id(handle, idx, "sample");
+widget_desc_close(handle);
+widget_provider_app_widget_updated(widget_id, 0, 0);
 \endocde
 
  */
 
-#endif /* __DYNAMICBOX_DOC_H__ */
+#endif /* __WIDGET_DOC_H__ */
diff --git a/dynamicbox/CMakeLists.txt b/dynamicbox/CMakeLists.txt
deleted file mode 100644 (file)
index 48b5fb6..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(dynamicbox C)
-
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "\${prefix}")
-SET(PROJECT_NAME "${PROJECT_NAME}")
-SET(LIBDIR "\${exec_prefix}/lib")
-SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}")
-SET(VERSION_MAJOR 1)
-SET(VERSION "${VERSION_MAJOR}.0.0")
-
-set(CMAKE_SKIP_BUILD_RPATH true)
-
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED
-       dlog
-       dynamicbox_service
-       dynamicbox_provider
-       evas
-       ecore
-       elementary
-)
-
-IF (X11_SUPPORT)
-pkg_check_modules(pkgs_extra REQUIRED
-       x11
-)
-ADD_DEFINITIONS("-DHAVE_X11")
-SET(BUILD_SOURCE 
-       src/virtual_window.c
-)
-ENDIF (X11_SUPPORT)
-
-IF (WAYLAND_SUPPORT)
-ADD_DEFINITIONS("-DHAVE_WAYLAND")
-SET(BUILD_SOURCE 
-       src/virtual_window_wayland.c
-)
-ENDIF (WAYLAND_SUPPORT)
-
-FOREACH(flag ${pkgs_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-FOREACH(flag ${pkgs_extra_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g")
-
-ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
-ADD_DEFINITIONS("-DLOG_TAG=\"DYNAMICBOX\"")
-ADD_DEFINITIONS("-DNDEBUG")
-ADD_DEFINITIONS("-D_USE_ECORE_TIME_GET")
-ADD_DEFINITIONS("-DMASTER_PKGNAME=\"data-provider-master\"")
-ADD_DEFINITIONS("-DSLAVE_PKGNAME=\"com.samsung.data-provider-slave\"")
-#ADD_DEFINITIONS("-D_ENABLE_PERF")
-
-SET (BUILD_SOURCE
-       ${BUILD_SOURCE}
-       src/dlist.c
-       src/util.c
-       src/dynamicbox.c
-       src/snapshot_window.c
-)
-
-ADD_LIBRARY(${PROJECT_NAME} SHARED ${BUILD_SOURCE})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${VERSION})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${pkgs_extra_LDFLAGS} "-lpthread")
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
-
-CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_NAME}.pc")
-
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
-       
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/dynamicbox.h DESTINATION include/${PROJECT_NAME})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/internal/dynamicbox.h DESTINATION include/${PROJECT_NAME}/internal)
-
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME "lib${PROJECT_NAME}")
-       
-ADD_SUBDIRECTORY(data)
diff --git a/dynamicbox/LICENSE b/dynamicbox/LICENSE
deleted file mode 100644 (file)
index 571fe79..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-Flora License
-
-Version 1.1, April, 2013
-
-http://floralicense.org/license/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction,
-and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by
-the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and
-all other entities that control, are controlled by, or are
-under common control with that entity. For the purposes of
-this definition, "control" means (i) the power, direct or indirect,
-to cause the direction or management of such entity,
-whether by contract or otherwise, or (ii) ownership of fifty percent (50%)
-or more of the outstanding shares, or (iii) beneficial ownership of
-such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity
-exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications,
-including but not limited to software source code, documentation source,
-and configuration files.
-
-"Object" form shall mean any form resulting from mechanical
-transformation or translation of a Source form, including but
-not limited to compiled object code, generated documentation,
-and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form,
-made available under the License, as indicated by a copyright notice
-that is included in or attached to the work (an example is provided
-in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form,
-that is based on (or derived from) the Work and for which the editorial
-revisions, annotations, elaborations, or other modifications represent,
-as a whole, an original work of authorship. For the purposes of this License,
-Derivative Works shall not include works that remain separable from,
-or merely link (or bind by name) to the interfaces of, the Work and
-Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original
-version of the Work and any modifications or additions to that Work or
-Derivative Works thereof, that is intentionally submitted to Licensor
-for inclusion in the Work by the copyright owner or by an individual or
-Legal Entity authorized to submit on behalf of the copyright owner.
-For the purposes of this definition, "submitted" means any form of
-electronic, verbal, or written communication sent to the Licensor or
-its representatives, including but not limited to communication on
-electronic mailing lists, source code control systems, and issue
-tracking systems that are managed by, or on behalf of, the Licensor
-for the purpose of discussing and improving the Work, but excluding
-communication that is conspicuously marked or otherwise designated
-in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity
-on behalf of whom a Contribution has been received by Licensor and
-subsequently incorporated within the Work.
-
-"Tizen Certified Platform" shall mean a software platform that complies
-with the standards set forth in the Tizen Compliance Specification
-and passes the Tizen Compliance Tests as defined from time to time
-by the Tizen Technical Steering Group and certified by the Tizen
-Association or its designated agent.
-
-2. Grant of Copyright License.  Subject to the terms and conditions of
-this License, each Contributor hereby grants to You a perpetual,
-worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-copyright license to reproduce, prepare Derivative Works of,
-publicly display, publicly perform, sublicense, and distribute the
-Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License.  Subject to the terms and conditions of
-this License, each Contributor hereby grants to You a perpetual,
-worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-(except as stated in this section) patent license to make, have made,
-use, offer to sell, sell, import, and otherwise transfer the Work
-solely as incorporated into a Tizen Certified Platform, where such
-license applies only to those patent claims licensable by such
-Contributor that are necessarily infringed by their Contribution(s)
-alone or by combination of their Contribution(s) with the Work solely
-as incorporated into a Tizen Certified Platform to which such
-Contribution(s) was submitted. If You institute patent litigation
-against any entity (including a cross-claim or counterclaim
-in a lawsuit) alleging that the Work or a Contribution incorporated
-within the Work constitutes direct or contributory patent infringement,
-then any patent licenses granted to You under this License for that
-Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution.  You may reproduce and distribute copies of the
-Work or Derivative Works thereof pursuant to the copyright license
-above, in any medium, with or without modifications, and in Source or
-Object form, provided that You meet the following conditions:
-
-  1. You must give any other recipients of the Work or Derivative Works
-     a copy of this License; and
-  2. You must cause any modified files to carry prominent notices stating
-     that You changed the files; and
-  3. You must retain, in the Source form of any Derivative Works that
-     You distribute, all copyright, patent, trademark, and attribution
-     notices from the Source form of the Work, excluding those notices
-     that do not pertain to any part of the Derivative Works; and
-  4. If the Work includes a "NOTICE" text file as part of its distribution,
-     then any Derivative Works that You distribute must include a readable
-     copy of the attribution notices contained within such NOTICE file,
-     excluding those notices that do not pertain to any part of
-     the Derivative Works, in at least one of the following places:
-     within a NOTICE text file distributed as part of the Derivative Works;
-     within the Source form or documentation, if provided along with the
-     Derivative Works; or, within a display generated by the Derivative Works,
-     if and wherever such third-party notices normally appear.
-     The contents of the NOTICE file are for informational purposes only
-     and do not modify the License. You may add Your own attribution notices 
-     within Derivative Works that You distribute, alongside or as an addendum 
-     to the NOTICE text from the Work, provided that such additional attribution 
-     notices cannot be construed as modifying the License. You may add Your own
-     copyright statement to Your modifications and may provide additional or
-     different license terms and conditions for use, reproduction, or
-     distribution of Your modifications, or for any such Derivative Works
-     as a whole, provided Your use, reproduction, and distribution of
-     the Work otherwise complies with the conditions stated in this License
-     and your own copyright statement or terms and conditions do not conflict
-     the conditions stated in the License including section 3.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
-any Contribution intentionally submitted for inclusion in the Work
-by You to the Licensor shall be under the terms and conditions of
-this License, without any additional terms or conditions.
-Notwithstanding the above, nothing herein shall supersede or modify
-the terms of any separate license agreement you may have executed
-with Licensor regarding such Contributions.
-
-6. Trademarks.  This License does not grant permission to use the trade
-names, trademarks, service marks, or product names of the Licensor,
-except as required for reasonable and customary use in describing the
-origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
-agreed to in writing, Licensor provides the Work (and each
-Contributor provides its Contributions) on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-implied, including, without limitation, any warranties or conditions
-of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-PARTICULAR PURPOSE. You are solely responsible for determining the
-appropriateness of using or redistributing the Work and assume any
-risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
-whether in tort (including negligence), contract, or otherwise,
-unless required by applicable law (such as deliberate and grossly
-negligent acts) or agreed to in writing, shall any Contributor be
-liable to You for damages, including any direct, indirect, special,
-incidental, or consequential damages of any character arising as a
-result of this License or out of the use or inability to use the
-Work (including but not limited to damages for loss of goodwill,
-work stoppage, computer failure or malfunction, or any and all
-other commercial damages or losses), even if such Contributor
-has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
-the Work or Derivative Works thereof, You may choose to offer,
-and charge a fee for, acceptance of support, warranty, indemnity,
-or other liability obligations and/or rights consistent with this
-License. However, in accepting such obligations, You may act only
-on Your own behalf and on Your sole responsibility, not on behalf
-of any other Contributor, and only if You agree to indemnify,
-defend, and hold each Contributor harmless for any liability
-incurred by, or claims asserted against, such Contributor by reason
-of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Flora License to your work
-
-To apply the Flora License to your work, attach the following
-boilerplate notice, with the fields enclosed by brackets "[]"
-replaced with your own identifying information. (Don't include
-the brackets!) The text should be enclosed in the appropriate
-comment syntax for the file format. We also recommend that a
-file or class name and description of purpose be included on the
-same "printed page" as the copyright notice for easier
-identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Flora License, Version 1.1 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://floralicense.org/license/
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
diff --git a/dynamicbox/dynamicbox.pc.in b/dynamicbox/dynamicbox.pc.in
deleted file mode 100644 (file)
index 404c551..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-prefix=@PREFIX@
-exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
-includedir=@INCLUDEDIR@
-
-Name: dynamicbox
-Description: dynamicbox supporting library
-Version: @VERSION@
-Requires.private: dynamicbox_service >= 1.0.0 dynamicbox_provider >= 1.0.0
-Libs: -L${libdir} -ldynamicbox
-Cflags: -I${includedir}
-cppflags: -I${includedir}
diff --git a/dynamicbox/include/internal/dynamicbox.h b/dynamicbox/include/internal/dynamicbox.h
deleted file mode 100755 (executable)
index 894c492..0000000
+++ /dev/null
@@ -1,672 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Export by dynamicbox_service
- */
-#include <dynamicbox_buffer.h>
-#include <dynamicbox_script.h>
-
-#ifndef __DYNAMICBOX_UILITY_INTERNAL_H
-#define __DYNAMICBOX_UILITY_INTERNAL_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file dynamicbox_internal.h
- * @brief This file declares API of libdynamicbox library
- * @since_tizen 2.3
- */
-
-/**
- * @addtogroup CAPI_DYNAMICBOX_UTILITY_MODULE
- * @{
- */
-
-/**
- * @internal
- * @brief Definition for COLOR BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_COLOR "color"
-
-/**
- * @internal
- * @brief Definition for TEXT BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_TEXT "text"
-
-/**
- * @internal
- * @brief Definition for IMAGE BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_IMAGE "image"
-
-/**
- * @internal
- * @brief Definition for SIGNAL BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_SIGNAL "signal"
-
-/**
- * @internal
- * @brief Definition for INFO BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_INFO "info"
-
-/**
- * @internal
- * @brief Definition for DRAG BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_DRAG "drag"
-
-/**
- * @internal
- * @brief Definition for SCRIPT SCRIPT.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_SCRIPT "script"
-
-/**
- * @internal
- * @brief Definition for ACCESSIBILITY INFORMATION BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_ACCESS "access"
-
-/**
- * @internal
- * @brief Definition for accessibility operation.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_ACCESS_OPERATION "access,operation"
-
-/**
- * @internal
- * @brief Definition for set highlight on specified part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_SET "set,hl"
-
-/**
- * @internal
- * @brief Definition for remove highlight from specified part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_UNSET "unset,hl"
-
-/**
- * @internal
- * @brief Definition for move the highlight to next part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_NEXT "next,hl"
-
-/**
- * @internal
- * @brief Definition for move the highlight to previous part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_PREV "prev,hl"
-
-/**
- * @internal
- * @brief Definition for reset the chain of accessibility highlight list.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_RESET "reset,focus"
-
-/**
- * @internal
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object, move back to the first object.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_OPTION_ACCESS_HL_LOOP "cycle"
-
-/**
- * @internal
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object(or the first object),
- * the "prev,hl", "next,hl" will be failed.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_OPTION_ACCESS_HL_NOLOOP "no,cycle"
-
-/**
- * @internal
- * @brief Dynamic Box description data handle.
- * @since_tizen 2.3
- */
-typedef struct dynamicbox_desc *dynamicbox_desc_h;
-
-/**
- * @internal
- * @brief Flush Callback for snapshot window
- * @since_tizen 2.3
- */
-typedef void (*dynamicbox_flush_cb)(void *snapshot_window, const char *id, int status, void *data);
-
-/**
- * @internal
- * @brief Updates a description file.
- * @since_tizen 2.3
- * @remarks Must be used only by Inhouse Dynamic Box.
- * @param[in] id Dynamic Box Instance Id
- * @param[in] gbar 1 for Glance Bar or 0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return Handle of desc instance
- * @retval @c NULL Failed to create a desc instance, dynamicbox_last_status() will returns reason of failure
- * @pre Should be loaded by data-provider-slave.
- * @post Should be destroyed(flushed) using dynamicbox_desc_close() API.
- * @see dynamicbox_desc_close()
- */
-extern dynamicbox_desc_h dynamicbox_desc_open(const char *id, int gbar);
-
-/**
- * @internal
- * @brief Completes the description file update.
- * @details Only if this API is called, the description data will be applied to the content of Dynamic Box (or GBar).
- * @since_tizen 2.3
- * @remarks Must be used only by Inhouse Dynamic Box.
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE If the flushing description data is successfully done
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER If the given handle is not valid
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @pre Handle must be created by dynamicbox_desc_open()
- * @post Handle must not be used after return from this function.
- * @see dynamicbox_desc_open()
- */
-extern int dynamicbox_desc_close(dynamicbox_desc_h handle);
-
-/**
- * @internal
- * @brief Sets the category information of current description data.
- * @details Creates a new description block for updating category information of layout object.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] category Category string that will be used by layout object
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Memory is not enough to add this block
- * @retval index Index(>=0) of added block, which can be used by dynamicbox_desc_set_id()
- * @pre Must be called after create a handle using dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_category(dynamicbox_desc_h handle, const char *id, const char *category);
-
-/**
- * @internal
- * @brief Sets the content size.
- * @details Sets the content size of layout.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] w Width in pixel
- * @param[in] h Height in pixel
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new block
- * @retval index Index(>=0) of added block Successfully added
- * @see dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_size(dynamicbox_desc_h handle, const char *id, int w, int h);
-
-/**
- * @internal
- * @brief Sets the target id of the given block.
- * @details Only available for the script block.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] idx Index of target block
- * @param[in] id Id String which will be used by other dynamicbox_desc_XXX functions
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Id is successfully updated for given idx of desc block
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Desc block should be exists which has given index "idx".
- * @post Specified Id string("id") can be used by other dynamicbox_desc_XXXX functions.
- * @see dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_id(dynamicbox_desc_h handle, int idx, const char *id);
-
-/**
- * @internal
- * @brief Adds a new block.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by the dynamicbox_desc_open() function
- * @param[in] id ID of source script object
- * @param[in] type Type (image|text|script|signal|.. etc)
- * @param[in] part Target part to update with given content(data)
- * @param[in] data Content for specified part
- * @param[in] option Option for the block. (script: group, image: option, ...)
- * @return Index of current description block
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new desc block
- * @retval index Index(>=0) of added desc block
- * @pre Handle must be created using dynamicbox_desc_open.
- * @see dynamicbox_desc_set_id()
- * @see dynamicbox_desc_del_block()
- */
-extern int dynamicbox_desc_add_block(dynamicbox_desc_h handle, const char *id, const char *type, const char *part, const char *data, const char *option);
-
-/**
- * @internal
- * @brief Deletes an added block.
- * @since_tizen 2.3
- * @details If you discard the added desc block, use this API and the index of the created desc block.
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] idx Index of added block, returned from dynamicbox_desc_add_block(), dynamicbox_desc_set_size(), dynamicbox_desc_set_category(), etc
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully deleted
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Index must be exists.
- * @see dynamicbox_desc_add_block()
- * @see dynamicbox_desc_open()
- */
-extern int dynamicbox_desc_del_block(dynamicbox_desc_h handle, int idx);
-
-/**
- * @internal
- * @brief Structure for a Dynamic Box buffer defined by a provider.
- * @since_tizen 2.3
- */
-typedef struct dynamicbox_buffer *dynamicbox_buffer_h;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Using network.
- * @since_tizen 2.3
- */
-extern const int DBOX_USE_NET;
-
-/**
- * @internal
- * @brief Notifies the updated content to the provider.
- * @details Forcedly notifies the updated contents.
- *    This function can be used from async callback function to notify the updated content.
- * @since_tizen 2.3
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] gbar 1 for updating content of Glance Bar or 0(for content of Dynamic Box)
- * @return int type
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_IO_ERROR I/O failed, Cannot access given resource file(id)
- * @retval #DBOX_STATUS_ERROR_NONE Successfully notified
- * @pre This API only can be used after loaded into the data-provider-slave process.
- */
-extern int dynamicbox_content_is_updated(const char *id, int gbar);
-
-/**
- * @internal
- * @brief Acquires a buffer for GBar or DBox, currently only the GBar is supported.
- * @since_tizen 2.3
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] gbar 1 for Glance Bar or 0 for Dynamic Box
- * @param[in] width Width in pixel
- * @param[in] height Height in pixel
- * @param[in] pixels Size of a pixel in bytes
- * @param[in] handler Event handling callback
- * @param[in] data User data for event handling callback
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return Buffer handle
- * @retval @c NULL Failed to acquire buffer, dynamicbox_last_status() will returns reason of failure.
- * @retval handler Handle object
- * @pre Given instance must be specify its type as buffer. or this API will be fail.
- * @post Allocated buffer object must be released via dynamicbox_release_buffer().
- * @see dynamicbox_release_buffer()
- */
-extern dynamicbox_buffer_h dynamicbox_create_buffer(const char *id, int gbar, int auto_align, int (*handler)(dynamicbox_buffer_h, dynamicbox_buffer_event_data_t, void *), void *data);
-
-/**
- * @internal
- * @brief Acquire a buffer for GBar or DBox.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @param[in] idx Index of a buffer, DBOX_PRIMARY_BUFFER is used for accessing primary buffer
- * @param[in] width Width of a buffer
- * @param[in] height Height of a buffer
- * @param[in] pixels Pixel size in byte
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
- * @retval #DBOX_STATUS_ERROR_NONE Successfully allocated
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DBOX_STATUS_ERROR_FAULT Unrecoverable error occurred
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @pre dynamicbox_create_buffer() must be called
- * @see dynamicbox_create_buffer()
- * @see dynamicbox_release_buffer()
- */
-extern int dynamicbox_acquire_buffer(dynamicbox_buffer_h handle, int idx, int width, int height, int pixels);
-
-/**
- * @internal
- * @brief Acquires the Id of Resource (window system).
- * @details Only if the provider uses Resource for providing render buffer.
- * @since_tizen 2.3
- * @remarks Pixmap Id can be destroyed if you call the dynamicbox_release_buffer(). Then this Resource Id is not guaranteed to use.
- * @param[in] handle Buffer handle
- * @param[in] idx Index of a buffer, #c DBOX_PRIMARY_BUFFER is used for accessing the primary buffer
- * @return unsigned int Resource Id
- * @retval >0 Resource Id
- * @retval 0 Failed to get Resource Id
- * @pre The system must be set to use the Resource Id method for content sharing.
- * @see dynamicbox_acquire_buffer()
- */
-extern unsigned int dynamicbox_resource_id(dynamicbox_buffer_h handle, int idx);
-
-/**
- * @internal
- * @brief Releases the buffer of dynamicbox.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @param[in] idx Index of a buffer, #c DBOX_PRIMARY_BUFFER is used for accessing the primary buffer
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_NONE Successfully released
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @pre Handle must be created using dynamicbox_acquire_buffer().
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_release_buffer(dynamicbox_buffer_h handle, int idx);
-
-/**
- * @internal
- * @brief Destroy a buffer of dynamicbox
- * @since_tizen 2.3
- * @param[in] handle buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMTER Invalid argument
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_NONE Successfully destroyed
- * @see dynamicbox_create_buffer()
- */
-extern int dynamicbox_destroy_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Gets the address of buffer for S/W rendering.
- * @details If you try to use this, after dynamicbox_create_hw_buffer(), you will get @c NULL.
- *          This API only be used for primary buffer. you cannot access the extra buffer
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return void* address of the render buffer
- * @retval @c NULL If it falis to get buffer address, dynamicbox_last_status() will returns reason of failure.
- * @retval address If it succeed to get the buffer address
- * @see dynamicbox_unref_buffer()
- */
-extern void *dynamicbox_ref_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Releases the S/W render buffer.
- * @since_tizen 2.3
- * @param[in] buffer Address of render buffer
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_NONE Successfully unreference
- * @pre dynamicbox_ref_buffer() must be called.
- * @see dynamicbox_ref_buffer()
- */
-extern int dynamicbox_unref_buffer(void *buffer);
-
-/**
- * @internal
- * @brief Synchronizes the updated buffer.
- * @details This is only needed for non-H/W accelerated buffer.
- *          This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully sync'd
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_sync_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Checks whether the dynamicbox supports H/W acceleration or not.
- *        This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @return int type
- * @retval 1 If the buffer handle support the H/W acceleration buffer
- * @retval 0 If it doesn not supported
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_support_hw_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Creates the H/W accelerated buffer.
- *        This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_ALREADY H/W buffer is already created
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_NONE Successfully created
- * @pre Must be checked whether the H/W buffer is supported or not.
- * @post Must be destroyed if it is not necessary.
- * @see dynamicbox_support_hw_buffer()
- */
-extern int dynamicbox_create_hw_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Destroys the H/W accelerated buffer.
- *        This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully destroyed
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @pre Must be created h/w buffer using dynamicbox_create_hw_buffer.
- * @see dynamicbox_create_hw_buffer()
- */
-extern int dynamicbox_destroy_hw_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Gets the address of the accelerated H/W buffer.
- *        This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return void* type
- * @retval @c NULL Failed to get H/W accelerated buffer address, dynamicbox_last_status() will returns reason of failure.
- * @retval addr H/W accelerated buffer address
- * @see dynamicbox_create_hw_buffer()
- */
-extern void *dynamicbox_buffer_hw_buffer(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Get the stride information from the buffer info
- *        This API is only supported for primary buffer (#c DBOX_PRIMARY_BUFFER)
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @return int stride size
- * @retval positive_value length of stride
- * @return #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameter
- * @return #DBOX_STATUS_ERROR_FAULT Unrecoverable error
- * @see dynamicbox_create_hw_buffer()
- */
-extern int dynamicbox_buffer_stride(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Pre-processes for rendering content.
- * @details This is only needed for accessing H/W accelerated buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_NONE Successfully done
- * @post dynamicbox_buffer_post_render must be called after the rendering (accessing buffer) is completed.
- * @see dynamicbox_support_hw_buffer()
- * @see dynamicbox_buffer_post_render()
- */
-extern int dynamicbox_buffer_pre_render(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Post-processes for rendering content.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return If succes returns 0 or return less than 0
- * @retval #DBOX_STATUS_ERROR_NONE If succeed
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @pre dynamicbox_buffer_pre_render must be called.
- * @see dynamicbox_support_hw_buffer()
- * @see dynamicbox_buffer_pre_render()
- */
-extern int dynamicbox_buffer_post_render(dynamicbox_buffer_h handle);
-
-/**
- * @internal
- * @brief Sends a request to the viewer (homescreen) to close the GBar.
- * @details Even though you call this function. the homescreen can ignore it.
- * @since_tizen 2.3
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] reason #DBOX_STATUS_ERROR_NONE(0)
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int type
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send a request
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- */
-extern int dynamicbox_request_close_glance_bar(const char *dboxid, const char *id, int reason);
-
-/**
- * @internal
- * @brief Create a snapshot window
- * @details
- *         If you want create a snapshot image of contents, create this snapshot window
- *         But it will not renders object asynchronously,
- *         So you have to render the objects immediately, the delayed rendering object will not be on the canvas
- *         After flush it to a file.
- * @since_tizen 2.3
- * @param[in] id
- * @param[in] size_type
- * @return void* window
- * @retval @c NULL failed to create a snapshot window, dynamicbox_last_status() will returns reason of failure.
- * @retval Object window object (ex, elementary window)
- * @see dynamicbox_snapshot_window_flush()
- */
-extern void *dynamicbox_snapshot_window_add(const char *id, int size_type);
-
-/**
- * @internal
- * @brief Flush to a file for snapshot window
- * @since_tizen 2.3
- * @param[in] snapshot_win Snapshot window
- * @param[in] timeout After this, the image file will be created
- * @param[in] flush_cb Right after flush an image file, this callback will be called
- * @param[in] data Callback data for flush_cb
- * @return int status
- * @retval #DBOX_STATUS_ERROR_NONE Successfully flushed (flush timer added)
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid paramter
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to create a flush timer
- * @see dynamicbox_snapshot_window_add()
- */
-extern int dynamicbox_snapshot_window_flush(void *snapshot_win, double timeout, dynamicbox_flush_cb flush_cb, void *data);
-
-/**
- * @internal
- * @brief Sending the updated event to the viewer
- * @since_tizen 2.3
- * @param[in] handle Dynamicbox Buffer Handle
- * @param[in] idx Index of a buffer
- * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
- * @retval #DBOX_STATUS_ERROR_NONE Successfully sent
- */
-extern int dynamicbox_send_updated_by_idx(dynamicbox_buffer_h handle, int idx);
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-/* End of a file */
diff --git a/dynamicbox/include/util.h b/dynamicbox/include/util.h
deleted file mode 100644 (file)
index 905974d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-extern int util_check_extension(const char *filename, const char *check_ptr);
-extern double util_timestamp(void);
-
-/* End of a file */
similarity index 100%
rename from dynamicbox/include/debug.h
rename to include/debug.h
similarity index 100%
rename from dynamicbox/include/dlist.h
rename to include/dlist.h
diff --git a/include/internal/widget.h b/include/internal/widget.h
new file mode 100755 (executable)
index 0000000..ad5963c
--- /dev/null
@@ -0,0 +1,672 @@
+/*
+ * Copyright 2013  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Export by widget_service
+ */
+#include <widget_buffer.h>
+#include <widget_script.h>
+
+#ifndef __WIDGET_UILITY_INTERNAL_H
+#define __WIDGET_UILITY_INTERNAL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file widget_internal.h
+ * @brief This file declares API of libwidget library
+ * @since_tizen 2.3
+ */
+
+/**
+ * @addtogroup CAPI_WIDGET_UTILITY_MODULE
+ * @{
+ */
+
+/**
+ * @internal
+ * @brief Definition for COLOR BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_COLOR "color"
+
+/**
+ * @internal
+ * @brief Definition for TEXT BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_TEXT "text"
+
+/**
+ * @internal
+ * @brief Definition for IMAGE BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_IMAGE "image"
+
+/**
+ * @internal
+ * @brief Definition for SIGNAL BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_SIGNAL "signal"
+
+/**
+ * @internal
+ * @brief Definition for INFO BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_INFO "info"
+
+/**
+ * @internal
+ * @brief Definition for DRAG BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_DRAG "drag"
+
+/**
+ * @internal
+ * @brief Definition for SCRIPT SCRIPT.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_SCRIPT "script"
+
+/**
+ * @internal
+ * @brief Definition for ACCESSIBILITY INFORMATION BLOCK.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_ACCESS "access"
+
+/**
+ * @internal
+ * @brief Definition for accessibility operation.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_TYPE_ACCESS_OPERATION "access,operation"
+
+/**
+ * @internal
+ * @brief Definition for set highlight on specified part.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_DATA_ACCESS_OPERATION_HL_SET "set,hl"
+
+/**
+ * @internal
+ * @brief Definition for remove highlight from specified part.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_DATA_ACCESS_OPERATION_HL_UNSET "unset,hl"
+
+/**
+ * @internal
+ * @brief Definition for move the highlight to next part.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_DATA_ACCESS_OPERATION_HL_NEXT "next,hl"
+
+/**
+ * @internal
+ * @brief Definition for move the highlight to previous part.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_DATA_ACCESS_OPERATION_HL_PREV "prev,hl"
+
+/**
+ * @internal
+ * @brief Definition for reset the chain of accessibility highlight list.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_DATA_ACCESS_OPERATION_RESET "reset,focus"
+
+/**
+ * @internal
+ * @brief Definition for specify the highlight move option.
+ * @details If the highlight list reaches to the last object, move back to the first object.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_OPTION_ACCESS_HL_LOOP "cycle"
+
+/**
+ * @internal
+ * @brief Definition for specify the highlight move option.
+ * @details If the highlight list reaches to the last object(or the first object),
+ * the "prev,hl", "next,hl" will be failed.
+ * @since_tizen 2.3
+ */
+#define WIDGET_DESC_OPTION_ACCESS_HL_NOLOOP "no,cycle"
+
+/**
+ * @internal
+ * @brief Dynamic Box description data handle.
+ * @since_tizen 2.3
+ */
+typedef struct widget_desc *widget_desc_h;
+
+/**
+ * @internal
+ * @brief Flush Callback for snapshot window
+ * @since_tizen 2.3
+ */
+typedef void (*widget_flush_cb)(void *snapshot_window, const char *id, int status, void *data);
+
+/**
+ * @internal
+ * @brief Updates a description file.
+ * @since_tizen 2.3
+ * @remarks Must be used only by Inhouse Dynamic Box.
+ * @param[in] id Dynamic Box Instance Id
+ * @param[in] gbar 1 for Glance Bar or 0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return Handle of desc instance
+ * @retval @c NULL Failed to create a desc instance, widget_last_status() will returns reason of failure
+ * @pre Should be loaded by data-provider-slave.
+ * @post Should be destroyed(flushed) using widget_desc_close() API.
+ * @see widget_desc_close()
+ */
+extern widget_desc_h widget_desc_open(const char *id, int gbar);
+
+/**
+ * @internal
+ * @brief Completes the description file update.
+ * @details Only if this API is called, the description data will be applied to the content of Dynamic Box (or GBar).
+ * @since_tizen 2.3
+ * @remarks Must be used only by Inhouse Dynamic Box.
+ * @param[in] handle Handle which is created by widget_desc_open() function
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_NONE If the flushing description data is successfully done
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER If the given handle is not valid
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @pre Handle must be created by widget_desc_open()
+ * @post Handle must not be used after return from this function.
+ * @see widget_desc_open()
+ */
+extern int widget_desc_close(widget_desc_h handle);
+
+/**
+ * @internal
+ * @brief Sets the category information of current description data.
+ * @details Creates a new description block for updating category information of layout object.
+ * @since_tizen 2.3
+ * @param[in] handle Handle which is created by widget_desc_open() function
+ * @param[in] id Id string of target object
+ * @param[in] category Category string that will be used by layout object
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid handle
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Memory is not enough to add this block
+ * @retval index Index(>=0) of added block, which can be used by widget_desc_set_id()
+ * @pre Must be called after create a handle using widget_desc_open()
+ * @see widget_desc_set_id()
+ */
+extern int widget_desc_set_category(widget_desc_h handle, const char *id, const char *category);
+
+/**
+ * @internal
+ * @brief Sets the content size.
+ * @details Sets the content size of layout.
+ * @since_tizen 2.3
+ * @param[in] handle Handle which is created by widget_desc_open() function
+ * @param[in] id Id string of target object
+ * @param[in] w Width in pixel
+ * @param[in] h Height in pixel
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new block
+ * @retval index Index(>=0) of added block Successfully added
+ * @see widget_desc_open()
+ * @see widget_desc_set_id()
+ */
+extern int widget_desc_set_size(widget_desc_h handle, const char *id, int w, int h);
+
+/**
+ * @internal
+ * @brief Sets the target id of the given block.
+ * @details Only available for the script block.
+ * @since_tizen 2.3
+ * @param[in] handle Handle which is created by widget_desc_open() function
+ * @param[in] idx Index of target block
+ * @param[in] id Id String which will be used by other widget_desc_XXX functions
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_NONE Id is successfully updated for given idx of desc block
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
+ * @pre Desc block should be exists which has given index "idx".
+ * @post Specified Id string("id") can be used by other widget_desc_XXXX functions.
+ * @see widget_desc_open()
+ * @see widget_desc_set_id()
+ */
+extern int widget_desc_set_id(widget_desc_h handle, int idx, const char *id);
+
+/**
+ * @internal
+ * @brief Adds a new block.
+ * @since_tizen 2.3
+ * @param[in] handle Handle which is created by the widget_desc_open() function
+ * @param[in] id ID of source script object
+ * @param[in] type Type (image|text|script|signal|.. etc)
+ * @param[in] part Target part to update with given content(data)
+ * @param[in] data Content for specified part
+ * @param[in] option Option for the block. (script: group, image: option, ...)
+ * @return Index of current description block
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new desc block
+ * @retval index Index(>=0) of added desc block
+ * @pre Handle must be created using widget_desc_open.
+ * @see widget_desc_set_id()
+ * @see widget_desc_del_block()
+ */
+extern int widget_desc_add_block(widget_desc_h handle, const char *id, const char *type, const char *part, const char *data, const char *option);
+
+/**
+ * @internal
+ * @brief Deletes an added block.
+ * @since_tizen 2.3
+ * @details If you discard the added desc block, use this API and the index of the created desc block.
+ * @param[in] handle Handle which is created by widget_desc_open() function
+ * @param[in] idx Index of added block, returned from widget_desc_add_block(), widget_desc_set_size(), widget_desc_set_category(), etc
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully deleted
+ * @retval #WIDGET_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
+ * @pre Index must be exists.
+ * @see widget_desc_add_block()
+ * @see widget_desc_open()
+ */
+extern int widget_desc_del_block(widget_desc_h handle, int idx);
+
+/**
+ * @internal
+ * @brief Structure for a Dynamic Box buffer defined by a provider.
+ * @since_tizen 2.3
+ */
+typedef struct widget_buffer *widget_buffer_h;
+
+/**
+ * @internal
+ * @brief Return values of widget programming interfaces: Using network.
+ * @since_tizen 2.3
+ */
+extern const int WIDGET_USE_NET;
+
+/**
+ * @internal
+ * @brief Notifies the updated content to the provider.
+ * @details Forcedly notifies the updated contents.
+ *    This function can be used from async callback function to notify the updated content.
+ * @since_tizen 2.3
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
+ * @param[in] gbar 1 for updating content of Glance Bar or 0(for content of Dynamic Box)
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_IO_ERROR I/O failed, Cannot access given resource file(id)
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully notified
+ * @pre This API only can be used after loaded into the data-provider-slave process.
+ */
+extern int widget_content_is_updated(const char *id, int gbar);
+
+/**
+ * @internal
+ * @brief Acquires a buffer for GBar or widget, currently only the GBar is supported.
+ * @since_tizen 2.3
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
+ * @param[in] gbar 1 for Glance Bar or 0 for Dynamic Box
+ * @param[in] width Width in pixel
+ * @param[in] height Height in pixel
+ * @param[in] pixels Size of a pixel in bytes
+ * @param[in] handler Event handling callback
+ * @param[in] data User data for event handling callback
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return Buffer handle
+ * @retval @c NULL Failed to acquire buffer, widget_last_status() will returns reason of failure.
+ * @retval handler Handle object
+ * @pre Given instance must be specify its type as buffer. or this API will be fail.
+ * @post Allocated buffer object must be released via widget_release_buffer().
+ * @see widget_release_buffer()
+ */
+extern widget_buffer_h widget_create_buffer(const char *id, int gbar, int auto_align, int (*handler)(widget_buffer_h, widget_buffer_event_data_t, void *), void *data);
+
+/**
+ * @internal
+ * @brief Acquire a buffer for GBar or widget.
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @param[in] idx Index of a buffer, WIDGET_PRIMARY_BUFFER is used for accessing primary buffer
+ * @param[in] width Width of a buffer
+ * @param[in] height Height of a buffer
+ * @param[in] pixels Pixel size in byte
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int status
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully allocated
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIDGET_STATUS_ERROR_FAULT Unrecoverable error occurred
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @pre widget_create_buffer() must be called
+ * @see widget_create_buffer()
+ * @see widget_release_buffer()
+ */
+extern int widget_acquire_buffer(widget_buffer_h handle, int idx, int width, int height, int pixels);
+
+/**
+ * @internal
+ * @brief Acquires the Id of Resource (window system).
+ * @details Only if the provider uses Resource for providing render buffer.
+ * @since_tizen 2.3
+ * @remarks Pixmap Id can be destroyed if you call the widget_release_buffer(). Then this Resource Id is not guaranteed to use.
+ * @param[in] handle Buffer handle
+ * @param[in] idx Index of a buffer, #c WIDGET_PRIMARY_BUFFER is used for accessing the primary buffer
+ * @return unsigned int Resource Id
+ * @retval >0 Resource Id
+ * @retval 0 Failed to get Resource Id
+ * @pre The system must be set to use the Resource Id method for content sharing.
+ * @see widget_acquire_buffer()
+ */
+extern unsigned int widget_resource_id(widget_buffer_h handle, int idx);
+
+/**
+ * @internal
+ * @brief Releases the buffer of widget.
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @param[in] idx Index of a buffer, #c WIDGET_PRIMARY_BUFFER is used for accessing the primary buffer
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int status
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully released
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @pre Handle must be created using widget_acquire_buffer().
+ * @see widget_acquire_buffer()
+ */
+extern int widget_release_buffer(widget_buffer_h handle, int idx);
+
+/**
+ * @internal
+ * @brief Destroy a buffer of widget
+ * @since_tizen 2.3
+ * @param[in] handle buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int status
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMTER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully destroyed
+ * @see widget_create_buffer()
+ */
+extern int widget_destroy_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Gets the address of buffer for S/W rendering.
+ * @details If you try to use this, after widget_create_hw_buffer(), you will get @c NULL.
+ *          This API only be used for primary buffer. you cannot access the extra buffer
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return void* address of the render buffer
+ * @retval @c NULL If it falis to get buffer address, widget_last_status() will returns reason of failure.
+ * @retval address If it succeed to get the buffer address
+ * @see widget_unref_buffer()
+ */
+extern void *widget_ref_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Releases the S/W render buffer.
+ * @since_tizen 2.3
+ * @param[in] buffer Address of render buffer
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid handle
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully unreference
+ * @pre widget_ref_buffer() must be called.
+ * @see widget_ref_buffer()
+ */
+extern int widget_unref_buffer(void *buffer);
+
+/**
+ * @internal
+ * @brief Synchronizes the updated buffer.
+ * @details This is only needed for non-H/W accelerated buffer.
+ *          This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully sync'd
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @see widget_acquire_buffer()
+ */
+extern int widget_sync_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Checks whether the widget supports H/W acceleration or not.
+ *        This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @return int type
+ * @retval 1 If the buffer handle support the H/W acceleration buffer
+ * @retval 0 If it doesn not supported
+ * @see widget_acquire_buffer()
+ */
+extern int widget_support_hw_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Creates the H/W accelerated buffer.
+ *        This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_ALREADY H/W buffer is already created
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully created
+ * @pre Must be checked whether the H/W buffer is supported or not.
+ * @post Must be destroyed if it is not necessary.
+ * @see widget_support_hw_buffer()
+ */
+extern int widget_create_hw_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Destroys the H/W accelerated buffer.
+ *        This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully destroyed
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @pre Must be created h/w buffer using widget_create_hw_buffer.
+ * @see widget_create_hw_buffer()
+ */
+extern int widget_destroy_hw_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Gets the address of the accelerated H/W buffer.
+ *        This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return void* type
+ * @retval @c NULL Failed to get H/W accelerated buffer address, widget_last_status() will returns reason of failure.
+ * @retval addr H/W accelerated buffer address
+ * @see widget_create_hw_buffer()
+ */
+extern void *widget_buffer_hw_buffer(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Get the stride information from the buffer info
+ *        This API is only supported for primary buffer (#c WIDGET_PRIMARY_BUFFER)
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @return int stride size
+ * @retval positive_value length of stride
+ * @return #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @return #WIDGET_STATUS_ERROR_FAULT Unrecoverable error
+ * @see widget_create_hw_buffer()
+ */
+extern int widget_buffer_stride(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Pre-processes for rendering content.
+ * @details This is only needed for accessing H/W accelerated buffer.
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid handle
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully done
+ * @post widget_buffer_post_render must be called after the rendering (accessing buffer) is completed.
+ * @see widget_support_hw_buffer()
+ * @see widget_buffer_post_render()
+ */
+extern int widget_buffer_pre_render(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Post-processes for rendering content.
+ * @since_tizen 2.3
+ * @param[in] handle Buffer handle
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return If succes returns 0 or return less than 0
+ * @retval #WIDGET_STATUS_ERROR_NONE If succeed
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @pre widget_buffer_pre_render must be called.
+ * @see widget_support_hw_buffer()
+ * @see widget_buffer_pre_render()
+ */
+extern int widget_buffer_post_render(widget_buffer_h handle);
+
+/**
+ * @internal
+ * @brief Sends a request to the viewer (homescreen) to close the GBar.
+ * @details Even though you call this function. the homescreen can ignore it.
+ * @since_tizen 2.3
+ * @param[in] widgetid Dynamic Box Package Id
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
+ * @param[in] reason #WIDGET_STATUS_ERROR_NONE(0)
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int type
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #WIDGET_STATUS_ERROR_FAULT Failed to send a request
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully requested
+ */
+extern int widget_request_close_glance_bar(const char *widgetid, const char *id, int reason);
+
+/**
+ * @internal
+ * @brief Create a snapshot window
+ * @details
+ *         If you want create a snapshot image of contents, create this snapshot window
+ *         But it will not renders object asynchronously,
+ *         So you have to render the objects immediately, the delayed rendering object will not be on the canvas
+ *         After flush it to a file.
+ * @since_tizen 2.3
+ * @param[in] id
+ * @param[in] size_type
+ * @return void* window
+ * @retval @c NULL failed to create a snapshot window, widget_last_status() will returns reason of failure.
+ * @retval Object window object (ex, elementary window)
+ * @see widget_snapshot_window_flush()
+ */
+extern void *widget_snapshot_window_add(const char *id, int size_type);
+
+/**
+ * @internal
+ * @brief Flush to a file for snapshot window
+ * @since_tizen 2.3
+ * @param[in] snapshot_win Snapshot window
+ * @param[in] timeout After this, the image file will be created
+ * @param[in] flush_cb Right after flush an image file, this callback will be called
+ * @param[in] data Callback data for flush_cb
+ * @return int status
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully flushed (flush timer added)
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid paramter
+ * @retval #WIDGET_STATUS_ERROR_FAULT Failed to create a flush timer
+ * @see widget_snapshot_window_add()
+ */
+extern int widget_snapshot_window_flush(void *snapshot_win, double timeout, widget_flush_cb flush_cb, void *data);
+
+/**
+ * @internal
+ * @brief Sending the updated event to the viewer
+ * @since_tizen 2.3
+ * @param[in] handle widget Buffer Handle
+ * @param[in] idx Index of a buffer
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/widget.provider
+ * @feature http://tizen.org/feature/shell.appwidget
+ * @return int status
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully sent
+ */
+extern int widget_send_updated_by_idx(widget_buffer_h handle, int idx);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* End of a file */
similarity index 100%
rename from livebox/include/util.h
rename to include/util.h
similarity index 54%
rename from dynamicbox/include/dynamicbox.h
rename to include/widget.h
index 044dddb..c0b80f2 100755 (executable)
  * limitations under the License.
  */
 
-#include <dynamicbox_service.h>
+#include <widget_service.h>
 
-#ifndef __DYNAMICBOX_UILITY_H
-#define __DYNAMICBOX_UILITY_H
+#ifndef __WIDGET_UILITY_H
+#define __WIDGET_UILITY_H
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 /**
- * @file dynamicbox.h
- * @brief This file declares API of libdynamicbox library
+ * @file widget.h
+ * @brief This file declares API of libwidget library
  * @since_tizen 2.4
  */
 
 /**
- * @addtogroup CAPI_DYNAMICBOX_UTILITY_MODULE
+ * @addtogroup CAPI_WIDGET_UTILITY_MODULE
  * @{
  */
 
 /**
- * @brief Event information type for dynamicbox_content_event()
- * @details definition is in dynamicbox_service.h file
+ * @brief Event information type for widget_content_event()
+ * @details definition is in widget_service.h file
  * @since_tizen 2.4
  */
-typedef struct dynamicbox_event_info *dynamicbox_event_info_t;
+typedef struct widget_event_info *widget_event_info_t;
 
 /**
  * @brief Creates an Object to create an elm_win object.
@@ -48,13 +48,13 @@ typedef struct dynamicbox_event_info *dynamicbox_event_info_t;
  * @param[in] id Instance Id
  * @param[in] gbar 1 if this object is created for Glance Bar or 0 (for Dynamic Box)
  * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
+ * @privilege %http://tizen.org/privilege/widget.provider
  * @feature http://tizen.org/feature/shell.appwidget
  * @return void* Object type
  * @retval Address Valid evas object
- * @retval @c NULL failed to create, dynamicbox_last_status() will returns reason of failure
+ * @retval @c NULL failed to create, widget_last_status() will returns reason of failure
  */
-extern void *dynamicbox_get_evas_object(const char *id, int gbar);
+extern void *widget_get_evas_object(const char *id, int gbar);
 
 /**
  * @brief Set extra information for updated content.
@@ -66,190 +66,190 @@ extern void *dynamicbox_get_evas_object(const char *id, int gbar);
  * @since_tizen 2.4
  * @remarks This function only works with the buffer type inhouse provider.
  * @param[in] id Dynamic Box Instance Id
- * @param[in] content Content string that will pass to a Dynamic Box via dynamicbox_create interface when it is re-created.
+ * @param[in] content Content string that will pass to a Dynamic Box via widget_create interface when it is re-created.
  * @param[in] title Human readable text for accessitility, summarized text for representing the content of a box.
  * @param[in] icon Path of icon image file - alternative image content
  * @param[in] name Name of a box - alternative text content
  * @return int type
  * @feature http://tizen.org/feature/shell.appwidget
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_FAULT Unrecoverable error
- * @retval #DBOX_STATUS_ERROR_NONE Successfully sent
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
+ * @retval #WIDGET_STATUS_ERROR_FAULT Unrecoverable error
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully sent
  */
-extern int dynamicbox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
+extern int widget_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Operation is successfully done.
+ * @brief Return values of widget programming interfaces: Operation is successfully done.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_DONE;
+extern const int WIDGET_DONE;
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Contents are updated.
+ * @brief Return values of widget programming interfaces: Contents are updated.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_OUTPUT_UPDATED;
+extern const int WIDGET_OUTPUT_UPDATED;
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Need to call the dynamicbox_need_to_update and dynamicbox_update_content.
+ * @brief Return values of widget programming interfaces: Need to call the widget_need_to_update and widget_update_content.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_NEED_TO_SCHEDULE;
+extern const int WIDGET_NEED_TO_SCHEDULE;
 
 /**
  * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to create a new instance.
+ * @brief Return values of widget programming interfaces: Need to create a new instance.
  * @since_tizen 2.4
  */
-extern const int DBOX_NEED_TO_CREATE;
+extern const int WIDGET_NEED_TO_CREATE;
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Need to do force update.
+ * @brief Return values of widget programming interfaces: Need to do force update.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_FORCE_TO_SCHEDULE;
+extern const int WIDGET_FORCE_TO_SCHEDULE;
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Need to destroy this instance.
+ * @brief Return values of widget programming interfaces: Need to destroy this instance.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_NEED_TO_DESTROY;
+extern const int WIDGET_NEED_TO_DESTROY;
 
 /**
- * @brief Return values of dynamicbox programming interfaces: Need to update.
+ * @brief Return values of widget programming interfaces: Need to update.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_NEED_TO_UPDATE;
+extern const int WIDGET_NEED_TO_UPDATE;
 
 /**
  * @brief System event type: System font is changed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_FONT_CHANGED;
+extern const int WIDGET_SYS_EVENT_FONT_CHANGED;
 
 /**
  * @brief System event type: System language is changed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_LANG_CHANGED;
+extern const int WIDGET_SYS_EVENT_LANG_CHANGED;
 
 /**
  * @brief System event type: System time is changed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_TIME_CHANGED;
+extern const int WIDGET_SYS_EVENT_TIME_CHANGED;
 
 /**
  * @brief System event type: MMC Status change event.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_MMC_STATUS_CHANGED;
+extern const int WIDGET_SYS_EVENT_MMC_STATUS_CHANGED;
 
 /**
  * @brief System event type: Region changed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_REGION_CHANGED;
+extern const int WIDGET_SYS_EVENT_REGION_CHANGED;
 
 /**
  * @brief System event type: Accessibility mode changed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_TTS_CHANGED;
+extern const int WIDGET_SYS_EVENT_TTS_CHANGED;
 
 /**
  * @brief System event type: Dynamic Box is paused.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_PAUSED;
+extern const int WIDGET_SYS_EVENT_PAUSED;
 
 /**
  * @brief System event type: Dynamic Box is resumed.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_RESUMED;
+extern const int WIDGET_SYS_EVENT_RESUMED;
 
 /**
  * @brief System event type: Dynamic Box instance is removed from a viewer.
  * @since_tizen 2.4
  * @feature http://tizen.org/feature/shell.appwidget
  */
-extern const int DBOX_SYS_EVENT_DELETED;
+extern const int WIDGET_SYS_EVENT_DELETED;
 
 /**
  * @brief Requests to schedule the update operation to a provider.
- *        Your DBox will get the update request, if the @a id is specified, specific box only will get it.
+ *        Your widget will get the update request, if the @a id is specified, specific box only will get it.
  * @since_tizen 2.4
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
  * @feature http://tizen.org/feature/shell.appwidget
  * @return If succes returns 0 or return less than 0
- * @retval #DBOX_STATUS_ERROR_NONE Successfully triggered
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given id instance is not exist
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_DISABLED in case of direct request for updating is disabled
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully triggered
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid argument
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
+ * @retval #WIDGET_STATUS_ERROR_NOT_EXIST Given id instance is not exist
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_DISABLED in case of direct request for updating is disabled
  */
-extern int dynamicbox_request_update(const char *id);
+extern int widget_request_update(const char *id);
 
 /**
  * @brief Send a freeze request to the viewer (homescreen)
  * @details
  *        The viewer will get this request via event callback.
- *        Then it should freeze its scroller or stop moving the dynamicbox.
+ *        Then it should freeze its scroller or stop moving the widget.
  * @since_tizen 2.4
  * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
+ * @param[in] widgetid Dynamic Box Package Id
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
  * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
+ * @privilege %http://tizen.org/privilege/widget.provider
  * @feature http://tizen.org/feature/shell.appwidget
  * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send requet
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- * @see dynamicbox_release_scroller()
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_FAULT Failed to send requet
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully requested
+ * @see widget_release_scroller()
  */
-extern int dynamicbox_freeze_scroller(const char *dboxid, const char *id);
+extern int widget_freeze_scroller(const char *widgetid, const char *id);
 
 /**
  * @brief Send a release request to the viewer (homescreen)
  * @details
  *        The viewer will get this request via event callback.
- *        Then it should release its scroller or continue moving the dynamicbox.
+ *        Then it should release its scroller or continue moving the widget.
  * @since_tizen 2.4
  * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
+ * @param[in] widgetid Dynamic Box Package Id
+ * @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
  * @privlevel public
- * @privilege %http://tizen.org/privilege/dynamicbox.provider
+ * @privilege %http://tizen.org/privilege/widget.provider
  * @feature http://tizen.org/feature/shell.appwidget
  * @return int type
- * @retval #DBOX_STATUS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send requet
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- * @see dynamicbox_freeze_scroller()
+ * @retval #WIDGET_STATUS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIDGET_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
+ * @retval #WIDGET_STATUS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #WIDGET_STATUS_ERROR_FAULT Failed to send requet
+ * @retval #WIDGET_STATUS_ERROR_NONE Successfully requested
+ * @see widget_freeze_scroller()
  */
-extern int dynamicbox_thaw_scroller(const char *dboxid, const char *id);
+extern int widget_thaw_scroller(const char *widgetid, const char *id);
 
 /**
  * @}
diff --git a/livebox/CMakeLists.txt b/livebox/CMakeLists.txt
deleted file mode 100644 (file)
index 373e05a..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(livebox C)
-
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "\${prefix}")
-SET(PROJECT_NAME "${PROJECT_NAME}")
-SET(LIBDIR "\${exec_prefix}/lib")
-SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}")
-SET(VERSION_MAJOR 1)
-SET(VERSION "${VERSION_MAJOR}.0.0")
-
-set(CMAKE_SKIP_BUILD_RPATH true)
-
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(old_pkgs REQUIRED
-    dlog
-    evas
-    ecore
-    elementary
-    livebox-service
-)
-
-FOREACH(flag ${old_pkgs_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g")
-
-ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
-ADD_DEFINITIONS("-DLOG_TAG=\"LIVEBOX\"")
-ADD_DEFINITIONS("-DNDEBUG")
-ADD_DEFINITIONS("-D_USE_ECORE_TIME_GET")
-ADD_DEFINITIONS("-DMASTER_PKGNAME=\"data-provider-master\"")
-ADD_DEFINITIONS("-DSLAVE_PKGNAME=\"com.samsung.data-provider-slave\"")
-
-SET (BUILD_SOURCE
-       src/livebox.c
-)
-
-ADD_LIBRARY(${PROJECT_NAME} SHARED ${BUILD_SOURCE})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${VERSION})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${old_pkgs_LDFLAGS} "-lpthread")
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
-
-CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_NAME}.pc")
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/livebox.h DESTINATION include/${PROJECT_NAME})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/livebox_product.h DESTINATION include/${PROJECT_NAME})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME "lib${PROJECT_NAME}")
diff --git a/livebox/include/debug.h b/livebox/include/debug.h
deleted file mode 100644 (file)
index d278fc4..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define DbgPrint(format, arg...)       SECURE_LOGD(format, ##arg)
-#define ErrPrint(format, arg...)       SECURE_LOGE(format, ##arg)
-#define WarnPrint(format, arg...)      SECURE_LOGW(format, ##arg)
-/* End of a file */
diff --git a/livebox/include/dlist.h b/livebox/include/dlist.h
deleted file mode 100644 (file)
index 6ce75e0..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define dlist_remove_data(list, data) do { \
-       struct dlist *l; \
-       l = dlist_find_data(list, data); \
-       list = dlist_remove(list, l); \
-} while (0)
-
-#define dlist_foreach(list, l, data) \
-       for ((l) = (list); ((data) = dlist_data(l)); (l) = dlist_next(l))
-
-#define dlist_foreach_safe(list, l, n, data) \
-       for ((l) = (list), (n) = dlist_next(l); \
-               ((data) = dlist_data(l)); \
-               (l) = (n), (n) = dlist_next(l))
-
-struct dlist;
-
-extern struct dlist *dlist_append(struct dlist *list, void *data);
-extern struct dlist *dlist_prepend(struct dlist *list, void *data);
-extern struct dlist *dlist_remove(struct dlist *list, struct dlist *l);
-extern struct dlist *dlist_find_data(struct dlist *list, void *data);
-extern void *dlist_data(struct dlist *l);
-extern struct dlist *dlist_next(struct dlist *l);
-extern struct dlist *dlist_prev(struct dlist *l);
-extern int dlist_count(struct dlist *l);
-extern struct dlist *dlist_nth(struct dlist *l, int nth);
-
-/* End of a file */
diff --git a/livebox/include/dynamicbox.h b/livebox/include/dynamicbox.h
deleted file mode 100644 (file)
index 768e9c5..0000000
+++ /dev/null
@@ -1,871 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __DYNAMICBOX_UILITY_H
-#define __DYNAMICBOX_UILITY_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <Evas.h>
-
-/**
- * @file dynamicbox.h
- * @brief This file declares API of libdynamicbox library
- * @since_tizen 2.3
- */
-
-/**
- * @addtogroup CAPI_DYNAMICBOX_UTILITY_MODULE
- * @{
- */
-
-/**
- * @brief Definition for COLOR BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_COLOR "color"
-
-/**
- * @brief Definition for TEXT BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_TEXT "text"
-
-/**
- * @brief Definition for IMAGE BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_IMAGE "image"
-
-/**
- * @brief Definition for SIGNAL BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_SIGNAL "signal"
-
-/**
- * @brief Definition for INFO BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_INFO "info"
-
-/**
- * @brief Definition for DRAG BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_DRAG "drag"
-
-/**
- * @brief Definition for SCRIPT SCRIPT.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_SCRIPT "script"
-
-/**
- * @brief Definition for ACCESSIBILITY INFORMATION BLOCK.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_ACCESS "access"
-
-/**
- * @brief Definition for accessibility operation.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_TYPE_ACCESS_OPERATION        "access,operation"
-
-/**
- * @brief Definition for set highlight on specified part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_SET "set,hl"
-
-/**
- * @brief Definition for remove highlight from specified part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_UNSET "unset,hl"
-
-/**
- * @brief Definition for move the highlight to next part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_NEXT "next,hl"
-
-/**
- * @brief Definition for move the highlight to previous part.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_HL_PREV "prev,hl"
-
-/**
- * @brief Definition for reset the chain of accessibility highlight list.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_DATA_ACCESS_OPERATION_RESET "reset,focus"
-
-/**
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object, move back to the first object.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_OPTION_ACCESS_HL_LOOP "cycle"
-
-/**
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object(or the first object),
- * the "prev,hl", "next,hl" will be failed.
- * @since_tizen 2.3
- */
-#define DBOX_DESC_OPTION_ACCESS_HL_NOLOOP "no,cycle"
-
-/**
- * @brief Dynamic Box description data handle.
- * @since_tizen 2.3
- */
-struct dynamicbox_desc;
-
-/**
- * @brief Updates a description file.
- * @since_tizen 2.3
- * @remarks Must be used only by Inhouse Dynamic Box.
- * @param[in] id Dynamic Box Instance Id
- * @param[in] gbar 1 for Glance Bar or 0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return Handle of desc instance
- * @pre Should be loaded by data-provider-slave.
- * @post Should be destroyed(flushed) using dynamicbox_desc_close() API.
- * @see dynamicbox_desc_close()
- */
-extern struct dynamicbox_desc *dynamicbox_desc_open(const char *id, int gbar);
-
-/**
- * @brief Completes the description file update.
- * @details Only if this API is called, the description data will be applied to the content of Dynamic Box (or GBar).
- * @since_tizen 2.3
- * @remarks Must be used only by Inhouse Dynamic Box.
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE If the flushing description data is successfully done
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER If the given handle is not valid
- * @pre Handle must be created by dynamicbox_desc_open()
- * @post Handle must not be used after return from this function.
- * @see dynamicbox_desc_open()
- */
-extern int dynamicbox_desc_close(struct dynamicbox_desc *handle);
-
-/**
- * @brief Sets the category information of current description data.
- * @details Creates a new description block for updating category information of layout object.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] category Category string that will be used by layout object
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Memory is not enough to add this block
- * @retval index Index(>=0) of added block, which can be used by dynamicbox_desc_set_id()
- * @pre Must be called after create a handle using dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_category(struct dynamicbox_desc *handle, const char *id, const char *category);
-
-/**
- * @brief Sets the content size.
- * @details Sets the content size of layout.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] w Width in pixel
- * @param[in] h Height in pixel
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new block
- * @retval index Index(>=0) of added block Successfully added
- * @see dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *id, int w, int h);
-
-/**
- * @brief Sets the target id of the given block.
- * @details Only available for the script block.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] idx Index of target block
- * @param[in] id Id String which will be used by other dynamicbox_desc_XXX functions
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Id is successfully updated for given idx of desc block
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Desc block should be exists which has given index "idx".
- * @post Specified Id string("id") can be used by other dynamicbox_desc_XXXX functions.
- * @see dynamicbox_desc_open()
- * @see dynamicbox_desc_set_id()
- */
-extern int dynamicbox_desc_set_id(struct dynamicbox_desc *handle, int idx, const char *id);
-
-/**
- * @brief Adds a new block.
- * @since_tizen 2.3
- * @param[in] handle Handle which is created by the dynamicbox_desc_open() function
- * @param[in] id ID of source script object
- * @param[in] type Type (image|text|script|signal|.. etc)
- * @param[in] part Target part to update with given content(data)
- * @param[in] data Content for specified part
- * @param[in] option Option for the block. (script: group, image: option, ...)
- * @return Index of current description block
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory to add a new desc block
- * @retval index Index(>=0) of added desc block
- * @pre Handle must be created using dynamicbox_desc_open.
- * @see dynamicbox_desc_set_id()
- * @see dynamicbox_desc_del_block()
- */
-extern int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option);
-
-/**
- * @brief Deletes an added block.
- * @since_tizen 2.3
- * @details If you discard the added desc block, use this API and the index of the created desc block.
- * @param[in] handle Handle which is created by dynamicbox_desc_open() function
- * @param[in] idx Index of added block, returned from dynamicbox_desc_add_block(), dynamicbox_desc_set_size(), dynamicbox_desc_set_category(), etc
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully deleted
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Index must be exists.
- * @see dynamicbox_desc_add_block()
- * @see dynamicbox_desc_open()
- */
-extern int dynamicbox_desc_del_block(struct dynamicbox_desc *handle, int idx);
-
-/**
- * @brief Creates an Evas_Object to create an elm_win object.
- * @details Creating a new Evas_Object using Dynamic Box frame buffer.
- * @since_tizen 2.3
- * @param[in] id Instance Id
- * @param[in] gbar 1 if this object is created for Glance Bar or 0 (for Dynamic Box)
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return Evas_Object* Evas Object type
- * @retval Address Valid evas object
- * @retval @c NULL failed to create
- */
-extern Evas_Object *dynamicbox_get_evas_object(const char *id, int gbar);
-
-/**
- * @brief Set extra information for updated content.
- * @details
- *      If the provider should give some hints to the viewer,
- *      such as title, icon and name, this function can set them.
- *      provider will send those information to the viewer when the
- *      content is updated.
- * @since_tizen 2.3
- * @remarks This function only works with the buffer type inhouse provider.
- * @param[in] id Dynamic Box Instance Id
- * @param[in] content Content string that will pass to a Dynamic Box via dynamicbox_create interface when it is re-created.
- * @param[in] title Human readable text for accessitility, summarized text for representing the content of a box.
- * @param[in] icon Path of icon image file - alternative image content
- * @param[in] name Name of a box - alternative text content
- * @return int type
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_FAULT Unrecoverable error
- * @retval #DBOX_STATUS_ERROR_NONE Successfully sent
- */
-extern int dynamicbox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
-
-
-/**
- * @internal
- * @brief Structure for a Dynamic Box buffer defined by a provider.
- * @since_tizen 2.3
- */
-struct dynamicbox_buffer;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Operation is successfully done.
- * @since_tizen 2.3
- */
-extern const int DONE;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Contents are updated.
- * @since_tizen 2.3
- */
-extern const int OUTPUT_UPDATED;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to call the dynamicbox_need_to_update and dynamicbox_update_content.
- * @since_tizen 2.3
- */
-extern const int NEED_TO_SCHEDULE;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to do force update.
- * @since_tizen 2.3
- */
-extern const int FORCE_TO_SCHEDULE;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to create a new instance.
- * @since_tizen 2.3
- */
-extern const int NEED_TO_CREATE;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to destroy this instance.
- * @since_tizen 2.3
- */
-extern const int NEED_TO_DESTROY;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Need to update.
- * @since_tizen 2.3
- */
-extern const int NEED_TO_UPDATE;
-
-/**
- * @internal
- * @brief Return values of dynamicbox programming interfaces: Using network.
- * @since_tizen 2.3
- */
-extern const int USE_NET;
-
-/**
- * @internal
- * @brief System event type: System font is changed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_FONT_CHANGED;
-
-/**
- * @internal
- * @brief System event type: System language is changed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_LANG_CHANGED;
-
-/**
- * @internal
- * @brief System event type: System time is changed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_TIME_CHANGED;
-
-/**
- * @internal
- * @brief System event type: Region changed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_REGION_CHANGED;
-
-/**
- * @internal
- * @brief System event type: Accessibility mode changed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_TTS_CHANGED;
-
-/**
- * @internal
- * @brief System event type: Dynamic Box is paused.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_PAUSED;
-
-/**
- * @internal
- * @brief System event type: Dynamic Box is resumed.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_RESUMED;
-
-/**
- * @internal
- * @brief System event type: MMC Status change event.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_MMC_STATUS_CHANGED;
-
-/**
- * @internal
- * @brief System event type: Dynamic Box instance is removed from a viewer.
- * @since_tizen 2.3
- */
-extern const int DBOX_SYS_EVENT_DELETED;
-
-/**
- * @internal
- * @brief Structure for extra event information for dynamicbox_content_event interface function.
- * @since_tizen 2.3
- */
-#if !defined(__SCRIPT_EVENT_INFO)
-#define __SCRIPT_EVENT_INFO
-
-/**
- * @internal
- * @brief
- * Text signal & Content event uses this data structure.
- * @since_tizen 2.3
- */
-struct event_info {
-        struct _pointer {
-                double x; /**< X value of current mouse(touch) position */
-                double y; /**< Y value of current mouse(touch) position */
-                int down; /**< Is it pressed(1) or not(0) */
-        } pointer;
-
-        struct _part {
-                double sx; /**< Pressed object's left top X */
-                double sy; /**< Pressed object's left top Y */
-                double ex; /**< Pressed object's right bottom X */
-                double ey; /**< Pressed object's right bottom Y */
-        } part;
-};
-#endif
-
-/**
- * @internal
- * @brief Notifies the updated content to the provider.
- * @details Forcedly notifies the updated contents.
- *    This function can be used from async callback function to notify the updated content.
- * @since_tizen 2.3
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] gbar 1 for updating content of Glance Bar or 0(for content of Dynamic Box)
- * @return int type
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_IO_ERROR I/O failed, Cannot access given resource file(id)
- * @retval #DBOX_STATUS_ERROR_NONE Successfully notified
- * @pre This API only can be used after loaded into the data-provider-slave process.
- */
-extern int dynamicbox_content_is_updated(const char *id, int gbar);
-
-/**
- * @internal
- * @brief Replaces "\n" (new line character) with &lt;br&gt; tag.
- * @details This utility function is used to replace all NEW LINE CHARACTER ("\n") with &lt;br&gt; tag.
- * @since_tizen 2.3
- * @param[in] str Source string
- * @return char * type
- * @retval string Allocted in the heap
- * @retval @c NULL If it fails to replace string
- * @post Returned string must has to be free'd by user manually.
- */
-extern char *dynamicbox_util_nl2br(const char *str);
-
-/**
- * @internal
- * @brief Interfaces for direct buffer management (Available only for the GBar area).
- * @since_tizen 2.3
- */
-#ifndef __DBOX_PROVIDER_BUFFER_H
-/**
- * @internal
- * @brief Enumeration for value should be sync'd with provider.
- * @since_tizen 2.3
- */
-enum dbox_buffer_event {
-       DBOX_BUFFER_EVENT_ENTER, /**< Mouse cursor enter */
-       DBOX_BUFFER_EVENT_LEAVE, /**< Mouse cursor leave */
-       DBOX_BUFFER_EVENT_DOWN, /**< Mouse down */
-       DBOX_BUFFER_EVENT_MOVE, /**< Mouse move */
-       DBOX_BUFFER_EVENT_UP, /**< Mouse up */
-
-       DBOX_BUFFER_EVENT_KEY_DOWN, /**< Key down */
-       DBOX_BUFFER_EVENT_KEY_UP, /**< Key up */
-       DBOX_BUFFER_EVENT_KEY_FOCUS_IN, /**< Key focus in */
-       DBOX_BUFFER_EVENT_KEY_FOCUS_OUT, /**< Key focus out */
-
-       DBOX_BUFFER_EVENT_HIGHLIGHT, /**< Accessibility - Highlight */
-       DBOX_BUFFER_EVENT_HIGHLIGHT_NEXT, /**< Accessibility - Move highlight to next */
-       DBOX_BUFFER_EVENT_HIGHLIGHT_PREV, /**< Accessibility - Move highlight to prev */
-       DBOX_BUFFER_EVENT_ACTIVATE, /**< Accessibility - Activate the highlighted object */
-       DBOX_BUFFER_EVENT_ACTION_UP, /**< Accessibility - Make UP action */
-       DBOX_BUFFER_EVENT_ACTION_DOWN, /**< Accessibility - Make Down action */
-       DBOX_BUFFER_EVENT_SCROLL_UP, /**< Accessibility - Scroll up */
-       DBOX_BUFFER_EVENT_SCROLL_MOVE, /**< Accessibility - Scroll move */
-       DBOX_BUFFER_EVENT_SCROLL_DOWN, /**< Accessibility - Scroll down */
-       DBOX_BUFFER_EVENT_UNHIGHLIGHT, /**< Accessibility - Remove highlight */
-
-       DBOX_BUFFER_EVENT_ON_HOLD,      /**< To prevent from generating mouse clicked event */
-       DBOX_BUFFER_EVENT_OFF_HOLD,     /**< Stopped holding. */
-       DBOX_BUFFER_EVENT_ON_SCROLL, /**< On scrolling */
-       DBOX_BUFFER_EVENT_OFF_SCROLL, /**< Scrolling stopped */
-
-       DBOX_BUFFER_EVENT_ACCESS_VALUE_CHANGE, /**< */
-       DBOX_BUFFER_EVENT_ACCESS_MOUSE, /**< give mouse event to highlight object */
-       DBOX_BUFFER_EVENT_ACCESS_BACK, /**< go back to a previous view ex: pop naviframe item */
-       DBOX_BUFFER_EVENT_ACCESS_OVER, /**< mouse over an object */
-       DBOX_BUFFER_EVENT_ACCESS_READ, /**< highlight an object */
-       DBOX_BUFFER_EVENT_ACCESS_ENABLE, /**< enable highlight and read ability */
-       DBOX_BUFFER_EVENT_ACCESS_DISABLE /**< disable highlight and read ability */
-};
-
-/**
- * @internal
- * @brief Event info
- * @since_tizen 2.3
- */
-struct dbox_buffer_event_data {
-       enum dbox_buffer_event type; /**< Mouse, Keyboard, Accessibility event type */
-       double timestamp; /**< Timestamp of events */
-
-       union _input_data {
-               struct _mouse {
-                       int x; /**< If the event type is for accessibility or mouse, coordinates of X for pointer */
-                       int y; /**< If the event type is for accessibility or mouse, coordinates of Y for pointer */
-               } pointer;
-
-               struct _access {
-                       int x; /**< Accessibility event X coordinate */
-                       int y; /**< Accessibility event Y coordinate */
-                       unsigned int mouse_type; /**< 0: down, 1: move, 2: up | 0: cur, 1: next, 2: prev, 3: off */
-                       unsigned int action_type; /**< reserved for protocol */
-                       unsigned int action_by; /**< reserved for protocol */
-                       int cycle; /**< reserved for protocol */
-               } access;
-
-               unsigned int keycode; /**< If the event type is for keyboard, the value of keycode */
-       } info;
-};
-#endif
-
-/**
- * @internal
- * @brief Acquires a buffer for GBar or DBox, currently only the GBar is supported.
- * @since_tizen 2.3
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] gbar 1 for Glance Bar or 0 for Dynamic Box
- * @param[in] width Width in pixel
- * @param[in] height Height in pixel
- * @param[in] pixels Size of a pixel in bytes
- * @param[in] handler Event handling callback
- * @param[in] data User data for event handling callback
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return Buffer handle
- * @retval @c NULL Failed to acquire buffer
- * @retval handler Handle object
- * @pre Given instance must be specify its type as buffer. or this API will be fail.
- * @post Allocated buffer object must be released via dynamicbox_release_buffer().
- * @see dynamicbox_release_buffer()
- */
-extern struct dynamicbox_buffer *dynamicbox_acquire_buffer(const char *id, int gbar, int width, int height, int pixels, int auto_align, int (*handler)(struct dynamicbox_buffer *, struct dbox_buffer_event_data *, void *), void *data);
-
-/**
- * @internal
- * @brief Acquires the Id of Resource (window system).
- * @details Only if the provider uses Resource for providing render buffer.
- * @since_tizen 2.3
- * @remarks Pixmap Id can be destroyed if you call the dynamicbox_release_buffer(). Then this Resource Id is not guaranteed to use.
- * @param[in] handle Buffer handle
- * @return unsigned int Resource Id
- * @retval >0 Resource Id
- * @retval 0 Failed to get Resource Id
- * @pre The system must be set to use the Resource Id method for content sharing.
- * @see dynamicbox_acquire_buffer()
- */
-extern unsigned int dynamicbox_resource_id(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Releases the buffer of dynamicbox.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_NONE Successfully released
- * @pre Handle must be created using dynamicbox_acquire_buffer().
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_release_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Gets the address of buffer for S/W rendering.
- * @details If you try to use this, after dynamicbox_create_hw_buffer(), you will get @c NULL.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return void* address of the render buffer
- * @retval @c NULL If it falis to get buffer address
- * @retval address If it succeed to get the buffer address
- * @see dynamicbox_unref_buffer()
- */
-extern void *dynamicbox_ref_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Releases the S/W render buffer.
- * @since_tizen 2.3
- * @param[in] buffer Address of render buffer
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_NONE Successfully unreference
- * @pre dynamicbox_ref_buffer() must be called.
- * @see dynamicbox_ref_buffer()
- */
-extern int dynamicbox_unref_buffer(void *buffer);
-
-/**
- * @internal
- * @brief Synchronizes the updated buffer.
- * @details This is only needed for non-H/W accelerated buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully sync'd
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_sync_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Requests to schedule the update operation to a provider.
- * @since_tizen 2.3
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return If succes returns 0 or return less than 0
- * @retval #DBOX_STATUS_ERROR_NONE Successfully triggered
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Not enough memory
- * @retval #DBOX_STATUS_ERROR_NOT_EXIST Given id instance is not exist
- */
-extern int dynamicbox_request_update(const char *id);
-
-/**
- * @internal
- * @brief Checks whether the dynamicbox supports H/W acceleration or not.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @return int type
- * @retval 1 If the buffer handle support the H/W acceleration buffer
- * @retval 0 If it doesn not supported
- * @see dynamicbox_acquire_buffer()
- */
-extern int dynamicbox_support_hw_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Creates the H/W accelerated buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_ALREADY H/W buffer is already created
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @retval #DBOX_STATUS_ERROR_NONE Successfully created
- * @pre Must be checked whether the H/W buffer is supported or not.
- * @post Must be destroyed if it is not necessary.
- * @see dynamicbox_support_hw_buffer()
- */
-extern int dynamicbox_create_hw_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Destroys the H/W accelerated buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_NONE Successfully destroyed
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @pre Must be created h/w buffer using dynamicbox_create_hw_buffer.
- * @see dynamicbox_create_hw_buffer()
- */
-extern int dynamicbox_destroy_hw_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Gets the address of the accelerated H/W buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return void* type
- * @retval @c NULL Failed to get H/W accelerated buffer address
- * @retval addr H/W accelerated buffer address
- * @see dynamicbox_create_hw_buffer()
- */
-extern void *dynamicbox_buffer_hw_buffer(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Get the stride information from the buffer info
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @return int stride size
- * @retval positive_value length of stride
- * @return DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameter
- * @return DBOX_STATUS_ERROR_FAULT Unrecoverable error
- * @see dynamicbox_create_hw_buffer()
- */
-extern int dynamicbox_buffer_stride(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Pre-processes for rendering content.
- * @details This is only needed for accessing H/W accelerated buffer.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid handle
- * @retval #DBOX_STATUS_ERROR_NONE Successfully done
- * @post dynamicbox_buffer_post_render must be called after the rendering (accessing buffer) is completed.
- * @see dynamicbox_support_hw_buffer()
- * @see dynamicbox_buffer_post_render()
- */
-extern int dynamicbox_buffer_pre_render(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Post-processes for rendering content.
- * @since_tizen 2.3
- * @param[in] handle Buffer handle
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return If succes returns 0 or return less than 0
- * @retval #DBOX_STATUS_ERROR_NONE If succeed
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid argument
- * @pre dynamicbox_buffer_pre_render must be called.
- * @see dynamicbox_support_hw_buffer()
- * @see dynamicbox_buffer_pre_render()
- */
-extern int dynamicbox_buffer_post_render(struct dynamicbox_buffer *handle);
-
-/**
- * @internal
- * @brief Sends a request to the viewer (homescreen) to close the GBar.
- * @details Even though you call this function. the homescreen can ignore it.
- * @since_tizen 2.3
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @param[in] reason DBOX_STATUS_ERROR_NONE(0)
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send a request
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- */
-extern int dynamicbox_request_close_gbar(const char *dboxid, const char *id, int reason);
-
-/**
- * @internal
- * @brief Send a freeze request to the viewer (homescreen)
- * @details
- *        The viewer will get this request via event callback.
- *        Then it should freeze its scroller or stop moving the dynamicbox.
- * @since_tizen 2.3
- * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send requet
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- * @see dynamicbox_release_scroller()
- */
-extern int dynamicbox_freeze_scroller(const char *dboxid, const char *id);
-
-/**
- * @internal
- * @brief Send a release request to the viewer (homescreen)
- * @details
- *        The viewer will get this request via event callback.
- *        Then it should release its scroller or continue moving the dynamicbox.
- * @since_tizen 2.3
- * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] dboxid Dynamic Box Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every dynamicbox_XXXX interface functions
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #DBOX_STATUS_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #DBOX_STATUS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #DBOX_STATUS_ERROR_FAULT Failed to send requet
- * @retval #DBOX_STATUS_ERROR_NONE Successfully requested
- * @see dynamicbox_freeze_scroller()
- */
-extern int dynamicbox_thaw_scroller(const char *dboxid, const char *id);
-
-/**
- * @internal
- * @brief Get the configuration value for premultiplied alpha.
- * @details
- *     If the system uses the premultiplied alpha for content,
- *     This function will returns 1.
- * @since_tizen 2.3
- * @remarks This function only works with the inhouse provider.
- * @return status of premultiplied alpha.
- * @retval 1 Content rendered with premultiplied alpha.
- * @retval 0 Content doesn't rendered with premultiplied alpha.
- */
-extern int dynamicbox_conf_premultiplied_alpha(void);
-
-/**
- * @internal
- * @brief Get the configuration value for AUTO Alignment of canvas buffer.
- * @details
- *      If the UIFW does not support the STRIDE information for rendering frame,
- *      This function will returns 1, then the dynamicbox will automatically aligning the buffer.
- * @since_tizen 2.3
- * @return status of auto alignment.
- * @retval 1 Content will be automatically aligned by dynamicbox.
- * @retval 0 Content will be aligned by UIFW, using stride information.
- */
-extern int dynamicbox_conf_auto_align(void);
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-/* End of a file */
diff --git a/livebox/include/livebox.h b/livebox/include/livebox.h
deleted file mode 100644 (file)
index f8686d4..0000000
+++ /dev/null
@@ -1,283 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __LIVEBOX_HELPER_H
-#define __LIVEBOX_HELPER_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <Evas.h>
-
-/**
- * @file livebox.h
- * @brief This file declares API of liblivebox library
- */
-
-/**
- * @addtogroup CAPI_LIVEBOX_HELPER_MODULE
- * @{
- */
-
-/**
- * @brief Definition for COLOR BLOCK.
- */
-#define LB_DESC_TYPE_COLOR "color"
-
-/**
- * @brief Definition for TEXT BLOCK.
- */
-#define LB_DESC_TYPE_TEXT "text"
-
-/**
- * @brief Definition for IMAGE BLOCK.
- */
-#define LB_DESC_TYPE_IMAGE "image"
-
-/**
- * @brief Definition for SIGNAL BLOCK.
- */
-#define LB_DESC_TYPE_SIGNAL "signal"
-
-/**
- * @brief Definition for INFO BLOCK.
- */
-#define LB_DESC_TYPE_INFO "info"
-
-/**
- * @brief Definition for DRAG BLOCK.
- */
-#define LB_DESC_TYPE_DRAG "drag"
-
-/**
- * @brief Definition for SCRIPT SCRIPT.
- */
-#define LB_DESC_TYPE_SCRIPT "script"
-
-/**
- * @brief Definition for ACCESSIBILITY INFORMATION BLOCK.
- */
-#define LB_DESC_TYPE_ACCESS "access"
-
-/**
- * @brief Definition for accessibility operation.
- */
-#define LB_DESC_TYPE_ACCESS_OPERATION  "access,operation"
-
-/**
- * @brief Definition for set highlight on specified part.
- */
-#define LB_DESC_DATA_ACCESS_OPERATION_HL_SET "set,hl"
-
-/**
- * @brief Definition for remove highlight from specified part.
- */
-#define LB_DESC_DATA_ACCESS_OPERATION_HL_UNSET "unset,hl"
-
-/**
- * @brief Definition for move the highlight to next part.
- */
-#define LB_DESC_DATA_ACCESS_OPERATION_HL_NEXT "next,hl"
-
-/**
- * @brief Definition for move the highlight to previous part.
- */
-#define LB_DESC_DATA_ACCESS_OPERATION_HL_PREV "prev,hl"
-
-/**
- * @brief Definition for reset the chain of accessibility highlight list.
- */
-#define LB_DESC_DATA_ACCESS_OPERATION_RESET "reset,focus"
-
-/**
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object, move back to the first object.
- */
-#define LB_DESC_OPTION_ACCESS_HL_LOOP "cycle"
-
-/**
- * @brief Definition for specify the highlight move option.
- * @details If the highlight list reaches to the last object(or the first object),
- * the "prev,hl", "next,hl" will be failed.
- */
-#define LB_DESC_OPTION_ACCESS_HL_NOLOOP "no,cycle"
-
-/**
- * @brief Livebox description data handle.
- */
-struct livebox_desc;
-
-/**
- * @brief Updates a description file.
- * @remarks Must be used only by Inhouse livebox.
- * @param[in] filename
- * @param[in] for_pd
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return Handle of desc instance
- * @pre Should be loaded by data-provider-slave.
- * @post Should be destroyed(flushed) using livebox_desc_close() API.
- * @see livebox_desc_close()
- */
-extern struct livebox_desc *livebox_desc_open(const char *filename, int for_pd);
-
-/**
- * @brief Completes the description file update.
- * @details Only if this API is called, the description data will be applied to the content of livebox (or PD).
- * @remarks Must be used only by Inhouse livebox.
- * @param[in] handle Handle which is created by livebox_desc_open() function
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_SUCCESS If the flushing description data is successfully done
- * @retval #LB_STATUS_ERROR_INVALID If the given handle is not valid
- * @pre Handle must be created by livebox_desc_open()
- * @post Handle must not be used after return from this function.
- * @see livebox_desc_open()
- */
-extern int livebox_desc_close(struct livebox_desc *handle);
-
-/**
- * @brief Sets the category information of current description data.
- * @details Creates a new description block for updating category information of layout object.
- * @param[in] handle Handle which is created by livebox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] category Category string that will be used by layout object
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid handle
- * @retval #LB_STATUS_ERROR_MEMORY Memory is not enough to add this block
- * @retval index Index(>=0) of added block, which can be used by livebox_desc_set_id()
- * @pre Must be called after create a handle using livebox_desc_open()
- * @see livebox_desc_set_id()
- */
-extern int livebox_desc_set_category(struct livebox_desc *handle, const char *id, const char *category);
-
-/**
- * @brief Sets the content size.
- * @details Sets the content size of layout.
- * @param[in] handle Handle which is created by livebox_desc_open() function
- * @param[in] id Id string of target object
- * @param[in] w Width in pixel
- * @param[in] h Height in pixel
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_MEMORY Not enough memory to add a new block
- * @retval index Index(>=0) of added block Successfully added
- * @see livebox_desc_open()
- * @see livebox_desc_set_id()
- */
-extern int livebox_desc_set_size(struct livebox_desc *handle, const char *id, int w, int h);
-
-/**
- * @brief Sets the target id of the given block.
- * @details Only available for the script block.
- * @param[in] handle Handle which is created by livebox_desc_open() function
- * @param[in] idx Index of target block
- * @param[in] id Id String which will be used by other livebox_desc_XXX functions
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_SUCCESS Id is successfully updated for given idx of desc block
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Desc block should be exists which has given index "idx".
- * @post Specified Id string("id") can be used by other livebox_desc_XXXX functions.
- * @see livebox_desc_open()
- * @see livebox_desc_set_id()
- */
-extern int livebox_desc_set_id(struct livebox_desc *handle, int idx, const char *id);
-
-/**
- * @brief Adds a new block.
- * @param[in] handle Handle which is created by the livebox_desc_open() function
- * @param[in] id ID of source script object
- * @param[in] type Type (image|text|script|signal|.. etc)
- * @param[in] part Target part to update with given content(data)
- * @param[in] data Content for specified part
- * @param[in] option Option for the block. (script: group, image: option, ...)
- * @privlevel N/P
- * @return Index of current description block
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_MEMORY Not enough memory to add a new desc block
- * @retval index Index(>=0) of added desc block
- * @pre Handle must be created using livebox_desc_open.
- * @see livebox_desc_set_id()
- * @see livebox_desc_del_block()
- */
-extern int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option);
-
-/**
- * @brief Deletes an added block.
- * @details If you discard the added desc block, use this API and the index of the created desc block.
- * @param[in] handle Handle which is created by livebox_desc_open() function
- * @param[in] idx Index of added block, returned from livebox_desc_add_block(), livebox_desc_set_size(), livebox_desc_set_category(), etc
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_SUCCESS Successfully deleted
- * @retval #LB_STATUS_ERROR_NOT_EXIST Given index of desc block is not exists
- * @pre Index must be exists.
- * @see livebox_desc_add_block()
- * @see livebox_desc_open()
- */
-extern int livebox_desc_del_block(struct livebox_desc *handle, int idx);
-
-/**
- * @brief Creates an Evas_Object to create an elm_win object.
- * @details Creating a new Evas_Object using livebox frame buffer.
- * @param[in] id Instance Id
- * @param[in] is_pd 1 if this object is created for PD or 0 (for LB)
- * @privlevel public
- * @privilege %http://tizen.org/privilege/core/dynamicbox.provider
- * @return Evas_Object* Evas Object type
- * @retval Address Valid evas object
- * @retval @c NULL failed to create
- */
-extern Evas_Object *livebox_get_evas_object(const char *id, int is_pd);
-
-/**
- * @brief Set extra information for updated content.
- * @details
- *      If the provider should give some hints to the viewer,
- *      such as title, icon and name, this function can set them.
- *      provider will send those information to the viewer when the
- *      content is updated.
- * @remarks This function only works with the buffer type inhouse provider.
- * @param[in] id Livebox Instance Id
- * @param[in] content Content string that will pass to a livebox via livebox_create interface when it is re-created.
- * @param[in] title Human readable text for accessitility, summarized text for representing the content of a box.
- * @param[in] icon Path of icon image file - alternative image content
- * @param[in] name Name of a box - alternative text content
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_ERROR_MEMORY Out of memory
- * @retval #LB_STATUS_ERROR_INVALID Invalid parameters
- * @retval #LB_STATUS_ERROR_FAULT Unrecoverable error
- * @retval #LB_STATUS_SUCCESS Successfully sent
- */
-extern int livebox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-/* End of a file */
diff --git a/livebox/include/livebox_product.h b/livebox/include/livebox_product.h
deleted file mode 100644 (file)
index 3df2eac..0000000
+++ /dev/null
@@ -1,474 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __LIVEBOX_HELPER_PRODUCT_H
-#define __LIVEBOX_HELPER_PRODUCT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file livebox_product.h
- * @brief This file declares API of liblivebox library for product
- */
-
-/**
- * @addtogroup CAPI_LIVEBOX_HELPER_PRODUCT_MODULE
- * @{
- */
-
-/**
- * @brief Structure for a livebox buffer defined by a provider.
- */
-struct livebox_buffer;
-
-extern const int DONE; /**<Return values of livebox programming interfaces: Operation is successfully done.*/
-
-extern const int OUTPUT_UPDATED; /**<Return values of livebox programming interfaces: Contents are updated.*/
-
-extern const int NEED_TO_SCHEDULE; /**<Return values of livebox programming interfaces: Need to call the livebox_need_to_update and livebox_update_content.*/
-
-extern const int FORCE_TO_SCHEDULE; /**<Return values of livebox programming interfaces: Need to do force update.*/
-
-extern const int NEED_TO_CREATE; /**<Return values of livebox programming interfaces: Need to create a new instance.*/
-
-extern const int NEED_TO_DESTROY; /**<Return values of livebox programming interfaces: Need to destroy this instance.*/
-
-extern const int NEED_TO_UPDATE; /**<Return values of livebox programming interfaces: Need to update.*/
-
-extern const int USE_NET; /**<Return values of livebox programming interfaces: Using network.*/
-
-extern const int LB_SYS_EVENT_FONT_CHANGED; /**<System event type: System font is changed.*/
-
-extern const int LB_SYS_EVENT_LANG_CHANGED; /**<System event type: System language is changed.*/
-
-extern const int LB_SYS_EVENT_TIME_CHANGED; /**<System event type: System time is changed.*/
-
-extern const int LB_SYS_EVENT_REGION_CHANGED; /**<System event type: Region changed. */
-
-extern const int LB_SYS_EVENT_TTS_CHANGED; /**< System event type: Accessibility changed. */
-
-extern const int LB_SYS_EVENT_PAUSED; /**<System event type: Livebox is paused.*/
-
-extern const int LB_SYS_EVENT_RESUMED; /**<System event type: Livebox is resumed.*/
-
-extern const int LB_SYS_EVENT_MMC_STATUS_CHANGED; /**<System event type: MMC Status change event.*/
-
-extern const int LB_SYS_EVENT_DELETED;/**<System event type: Livebox instance is removed from a viewer.*/
-
-/**
- * @brief Structure for extra event information for livebox_content_event interface function.
- */
-#if !defined(__SCRIPT_EVENT_INFO)
-#define __SCRIPT_EVENT_INFO
-/**
- * @brief
- * Text signal & Content event uses this data structure.
- */
-struct event_info {
-        struct pointer {
-                double x; /**< X value of current mouse(touch) position */
-                double y; /**< Y value of current mouse(touch) position */
-                int down; /**< Is it pressed(1) or not(0) */
-        } pointer;
-
-        struct part {
-                double sx; /**< Pressed object's left top X */
-                double sy; /**< Pressed object's left top Y */
-                double ex; /**< Pressed object's right bottom X */
-                double ey; /**< Pressed object's right bottom Y */
-        } part;
-};
-#endif
-
-/**
- * @brief Notifies the updated content to the provider.
- * @details Forcedly notifies the updated contents.
- *    This function can be used from async callback function to notify the updated content.
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @param[in] is_pd 1 for updating content of PD or 0(for content of LB)
- * @privlevel N/P
- * @return int type
- * @retval #LB_STATUS_ERROR_MEMORY Not enough memory
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_IO I/O failed, Cannot access given resource file(id)
- * @retval #LB_STATUS_SUCCESS Successfully notified
- * @pre This API only can be used after loaded into the data-provider-slave process.
- */
-extern int livebox_content_is_updated(const char *id, int is_pd);
-
-/**
- * @brief Replaces "\n" (new line character) with &lt;br&gt; tag.
- * @details This utility function is used to replace all NEW LINE CHARACTER ("\n") with &lt;br&gt; tag.
- * @param[in] str Source string
- * @privlevel N/P
- * @return char * type
- * @retval string Allocted in the heap
- * @retval @c NULL If it fails to replace string
- * @post Returned string must has to be free'd by user manually.
- */
-extern char *livebox_util_nl2br(const char *str);
-
-/*
- * Interfaces for direct buffer management (Available only for the PD area).
- */
-#ifndef __PROVIDER_BUFFER_H
-/**
- * @brief Enumeration for value should be sync'd with provider.
- */
-enum buffer_event {
-       BUFFER_EVENT_ENTER, /**< Mouse cursor enter */
-       BUFFER_EVENT_LEAVE, /**< Mouse cursor leave */
-       BUFFER_EVENT_DOWN, /**< Mouse down */
-       BUFFER_EVENT_MOVE, /**< Mouse move */
-       BUFFER_EVENT_UP, /**< Mouse up */
-
-       BUFFER_EVENT_KEY_DOWN, /**< Key down */
-       BUFFER_EVENT_KEY_UP, /**< Key up */
-       BUFFER_EVENT_KEY_FOCUS_IN, /**< Key focus in */
-       BUFFER_EVENT_KEY_FOCUS_OUT, /**< Key focus out */
-
-       BUFFER_EVENT_HIGHLIGHT, /**< Accessibility - Highlight */
-       BUFFER_EVENT_HIGHLIGHT_NEXT, /**< Accessibility - Move highlight to next */
-       BUFFER_EVENT_HIGHLIGHT_PREV, /**< Accessibility - Move highlight to prev */
-       BUFFER_EVENT_ACTIVATE, /**< Accessibility - Activate the highlighted object */
-       BUFFER_EVENT_ACTION_UP, /**< Accessibility - Make UP action */
-       BUFFER_EVENT_ACTION_DOWN, /**< Accessibility - Make Down action */
-       BUFFER_EVENT_SCROLL_UP, /**< Accessibility - Scroll up */
-       BUFFER_EVENT_SCROLL_MOVE, /**< Accessibility - Scroll move */
-       BUFFER_EVENT_SCROLL_DOWN, /**< Accessibility - Scroll down */
-       BUFFER_EVENT_UNHIGHLIGHT, /**< Accessibility - Remove highlight */
-
-       BUFFER_EVENT_ON_HOLD,   /**< To prevent from generating mouse clicked event */
-       BUFFER_EVENT_OFF_HOLD,  /**< Stopped holding. */
-       BUFFER_EVENT_ON_SCROLL, /**< On scrolling */
-       BUFFER_EVENT_OFF_SCROLL, /**< Scrolling stopped */
-
-       /* Accessibility event */
-       BUFFER_EVENT_VALUE_CHANGE,
-       BUFFER_EVENT_MOUSE,
-       BUFFER_EVENT_BACK,
-       BUFFER_EVENT_OVER,
-       BUFFER_EVENT_READ,
-       BUFFER_EVENT_ENABLE,
-       BUFFER_EVENT_DISABLE
-};
-
-struct buffer_event_data {
-       enum buffer_event type; /**< Mouse, Keyboard, Accessibility event type */
-       double timestamp; /**< Timestamp of events */
-
-       union input_data {
-               struct mouse {
-                       int x; /**< If the event type is for accessibility or mouse, coordinates of X for pointer */
-                       int y; /**< If the event type is for accessibility or mouse, coordinates of Y for pointer */
-               } pointer;
-
-               struct access {
-                       int x;
-                       int y;
-                       unsigned int mouse_type;
-                       unsigned int action_type;
-                       unsigned int action_by;
-                       int cycle;
-               } access;
-
-               unsigned int keycode; /**< If the event type is for keyboard, the value of keycode */
-       } info;
-};
-#endif
-
-/**
- * @brief Acquires a buffer for PD or LB, currently only the PD is supported.
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @param[in] is_pd 1 for PD or 0 for livebox
- * @param[in] width Width in pixel
- * @param[in] height Height in pixel
- * @param[in] pixels Size of a pixel in bytes
- * @param[in] handler Event handling callback
- * @param[in] data User data for event handling callback
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return Buffer handle
- * @retval @c NULL Failed to acquire buffer
- * @retval handler Handle object
- * @pre Given instance must be specify its type as buffer. or this API will be fail.
- * @post Allocated buffer object must be released via livebox_release_buffer().
- * @see livebox_acquire_buffer()
- */
-extern struct livebox_buffer *livebox_acquire_buffer(const char *id, int is_pd, int width, int height, int pixels, int auto_align, int (*handler)(struct livebox_buffer *, struct buffer_event_data *, void *), void *data);
-
-/**
- * @brief Acquires the ID of pixmap resource.
- * @details Only if the provider uses pixmap for providing render buffer.
- * @remarks Pixmap Id can be destroyed if you call the livebox_release_buffer(). Then this pixmap Id is not guaranteed to use.
- * @param[in] handle Buffer handle
- * @privlevel N/P
- * @return unsigned log type
- * @retval positive Pixmap Id
- * @retval 0 Failed to get pixmap Id
- * @pre The system must be set to use the pixmap method for content sharing.
- * @see livebox_acquire_buffer()
- */
-extern unsigned long livebox_pixmap_id(struct livebox_buffer *handle);
-
-/**
- * @brief Releases the buffer of livebox.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_SUCCESS Successfully released
- * @pre Handle must be created using livebox_acquire_buffer().
- * @see livebox_acquire_buffer()
- */
-extern int livebox_release_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Gets the address of S/W render buffer.
- * @details If you try to use this, after livebox_create_hw_buffer(), you will get @c NULL.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return void* address of the render buffer
- * @retval @c NULL If it falis to get buffer address
- * @retval address If it succeed to get the buffer address
- * @see livebox_unref_buffer()
- */
-extern void *livebox_ref_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Releases the S/W render buffer.
- * @param[in] buffer Address of render buffer
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid handle
- * @retval #LB_STATUS_SUCCESS Successfully unreference
- * @pre livebox_ref_buffer() must be called.
- * @see livebox_ref_buffer()
- */
-extern int livebox_unref_buffer(void *buffer);
-
-/**
- * @brief Synchronizes the updated buffer.
- * @details This is only needed for non-H/W accelerated buffer.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_SUCCESS Successfully sync'd
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @see livebox_acquire_buffer()
- */
-extern int livebox_sync_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Requests to schedule the update operation to a provider.
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return If succes returns 0 or return less than 0
- * @retval #LB_STATUS_SUCCESS Successfully triggered
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_MEMORY Not enough memory
- * @retval #LB_STATUS_ERROR_NOT_EXIST Given id instance is not exist
- */
-extern int livebox_request_update(const char *id);
-
-/**
- * @brief Checks whether the livebox supports H/W acceleration or not.
- * @param[in] handle Buffer handle
- * @privlevel N/P
- * @return int type
- * @retval 1 If the buffer handle support the H/W acceleration buffer
- * @retval 0 If it doesn not supported
- * @see livebox_acquire_buffer()
- */
-extern int livebox_support_hw_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Creates the H/W accelerated buffer.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_ALREADY H/W buffer is already created
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_SUCCESS Successfully created
- * @pre Must be checked whether the H/W buffer is supported or not.
- * @post Must be destroyed if it is not necessary.
- * @see livebox_support_hw_buffer()
- */
-extern int livebox_create_hw_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Destroys the H/W accelerated buffer.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_SUCCESS Successfully destroyed
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @pre Must be created h/w buffer using livebox_create_hw_buffer.
- * @see livebox_create_hw_buffer()
- */
-extern int livebox_destroy_hw_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Gets the address of the accelerated H/W buffer.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return void* type
- * @retval @c NULL Failed to get H/W accelerated buffer address
- * @retval addr H/W accelerated buffer address
- * @see livebox_create_hw_buffer()
- */
-extern void *livebox_buffer_hw_buffer(struct livebox_buffer *handle);
-
-/**
- * @brief Get the stride information from the buffer info
- * @param[in] handle Buffer handle
- * @privlevel N/P
- * @return int stride size
- * @retval positive_value length of stride
- * @return LB_STATUS_ERROR_INVALID Invalid parameter
- * @return LB_STATUS_ERROR_FAULT Unrecoverable error
- * @see livebox_create_hw_buffer()
- */
-extern int livebox_buffer_stride(struct livebox_buffer *handle);
-
-/**
- * @brief Pre-processes for rendering content.
- * @details This is only needed for accessing H/W accelerated buffer.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid handle
- * @retval #LB_STATUS_SUCCESS Successfully done
- * @post livebox_buffer_post_render must be called after the rendering (accessing buffer) is completed.
- * @see livebox_support_hw_buffer()
- * @see livebox_buffer_post_render()
- */
-extern int livebox_buffer_pre_render(struct livebox_buffer *handle);
-
-/**
- * @brief Post-processes for rendering content.
- * @param[in] handle Buffer handle
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return If succes returns 0 or return less than 0
- * @retval #LB_STATUS_SUCCESS If succeed
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @pre livebox_buffer_pre_render must be called.
- * @see livebox_support_hw_buffer()
- * @see livebox_buffer_pre_render()
- */
-extern int livebox_buffer_post_render(struct livebox_buffer *handle);
-
-/**
- * @brief Sends a request to the viewer (homescreen) to close the PD.
- * @details Even though you call this function. the homescreen can ignore it.
- * @param[in] pkgname Livebox Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @param[in] reason LB_STATUS_SUCCESS(0)
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid parameters
- * @retval #LB_STATUS_ERROR_MEMORY Out of memory
- * @retval #LB_STATUS_ERROR_FAULT Failed to send a request
- * @retval #LB_STATUS_SUCCESS Successfully requested
- */
-extern int livebox_request_close_pd(const char *pkgname, const char *id, int reason);
-
-/**
- * @brief Send a freeze request to the viewer (homescreen)
- * @details
- *        The viewer will get this request via event callback.
- *        Then it should freeze its scroller or stop moving the livebox.
- * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] pkgname Livebox Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid parameters
- * @retval #LB_STATUS_ERROR_MEMORY Out of memory
- * @retval #LB_STATUS_ERROR_FAULT Failed to send requet
- * @retval #LB_STATUS_SUCCESS Successfully requested
- * @see livebox_release_scroller()
- */
-extern int livebox_freeze_scroller(const char *pkgname, const char *id);
-
-/**
- * @brief Send a release request to the viewer (homescreen)
- * @details
- *        The viewer will get this request via event callback.
- *        Then it should release its scroller or continue moving the livebox.
- * @remarks If the viewer doesn't care this request, this will has no effect.
- * @param[in] pkgname Livebox Package Id
- * @param[in] id Instance Id which is passed to you via the first parameter of every livebox_XXXX interface functions
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.provider
- * @return int type
- * @retval #LB_STATUS_ERROR_INVALID Invalid parameters
- * @retval #LB_STATUS_ERROR_MEMORY Out of memory
- * @retval #LB_STATUS_ERROR_FAULT Failed to send requet
- * @retval #LB_STATUS_SUCCESS Successfully requested
- * @see livebox_freeze_scroller()
- */
-extern int livebox_release_scroller(const char *pkgname, const char *id);
-
-/**
- * @brief Get the configuration value for premultiplied alpha.
- * @details
- *     If the system uses the premultiplied alpha for content,
- *     This function will returns 1.
- * @remarks This function only works with the inhouse provider.
- * @privlevel N/P
- * @return status of premultiplied alpha.
- * @retval 1 Content rendered with premultiplied alpha.
- * @retval 0 Content doesn't rendered with premultiplied alpha.
- */
-extern int livebox_conf_premultiplied_alpha(void);
-
-/**
- * @brief Get the configuration value for AUTO Alignment of canvas buffer.
- * @details
- *      If the UIFW does not support the STRIDE information for rendering frame,
- *      This function will returns 1, then the livebox will automatically aligning the buffer.
- * @privlevel N/P
- * @return status of auto alignment.
- * @retval 1 Content will be automatically aligned by livebox.
- * @retval 0 Content will be aligned by UIFW, using stride information.
- */
-extern int livebox_conf_auto_align(void);
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-/* End of a file */
diff --git a/livebox/src/livebox.c b/livebox/src/livebox.c
deleted file mode 100644 (file)
index 4c0290a..0000000
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
- * Copyright 2013  Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdio.h>
-#include <errno.h>
-
-#include <livebox-service.h>
-#include <livebox-errno.h>
-
-#include "livebox.h"
-
-#define PUBLIC __attribute__((visibility("default")))
-
-struct livebox_desc {
-       FILE *fp;
-       int for_pd;
-
-       unsigned int last_idx;
-
-       //struct dlist *block_list;
-};
-
-PUBLIC const int DONE = 0x00;
-PUBLIC const int OUTPUT_UPDATED = 0x02;
-PUBLIC const int USE_NET = 0x04;
-
-PUBLIC const int NEED_TO_SCHEDULE = 0x01;
-PUBLIC const int NEED_TO_CREATE = 0x01;
-PUBLIC const int NEED_TO_DESTROY = 0x01;
-PUBLIC const int NEED_TO_UPDATE = 0x01;
-PUBLIC const int FORCE_TO_SCHEDULE = 0x08;
-
-PUBLIC const int LB_SYS_EVENT_FONT_CHANGED = 0x01;
-PUBLIC const int LB_SYS_EVENT_LANG_CHANGED = 0x02;
-PUBLIC const int LB_SYS_EVENT_TIME_CHANGED = 0x04;
-PUBLIC const int LB_SYS_EVENT_REGION_CHANGED = 0x08;
-PUBLIC const int LB_SYS_EVENT_TTS_CHANGED = 0x10;
-PUBLIC const int LB_SYS_EVENT_PAUSED = 0x0100;
-PUBLIC const int LB_SYS_EVENT_RESUMED = 0x0200;
-PUBLIC const int LB_SYS_EVENT_MMC_STATUS_CHANGED = 0x0400;
-PUBLIC const int LB_SYS_EVENT_DELETED = 0x0800;
-
-PUBLIC struct livebox_desc *livebox_desc_open(const char *filename, int for_pd)
-{
-       return NULL;
-}
-
-PUBLIC int livebox_desc_close(struct livebox_desc *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_desc_set_category(struct livebox_desc *handle, const char *id, const char *category)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_desc_set_size(struct livebox_desc *handle, const char *id, int w, int h)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC char *livebox_util_nl2br(const char *str)
-{
-       return NULL;
-}
-
-PUBLIC int livebox_desc_set_id(struct livebox_desc *handle, int idx, const char *id)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-/*!
- * \return idx
- */
-PUBLIC int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_desc_del_block(struct livebox_desc *handle, int idx)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC struct livebox_buffer *livebox_acquire_buffer(const char *filename, int is_pd, int width, int height, int pixels, int auto_align, int (*handler)(struct livebox_buffer *, struct buffer_event_data *, void *), void *data)
-{
-       return NULL;
-}
-
-PUBLIC int livebox_request_update(const char *filename)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_conf_premultiplied_alpha(void)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC unsigned long livebox_pixmap_id(struct livebox_buffer *handle)
-{
-       return 0lu;
-}
-
-PUBLIC int livebox_release_buffer(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC void *livebox_ref_buffer(struct livebox_buffer *handle)
-{
-       return NULL;
-}
-
-PUBLIC int livebox_unref_buffer(void *buffer)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_sync_buffer(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_support_hw_buffer(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_create_hw_buffer(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_destroy_hw_buffer(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC void *livebox_buffer_hw_buffer(struct livebox_buffer *handle)
-{
-       return NULL;
-}
-
-PUBLIC int livebox_buffer_pre_render(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_buffer_post_render(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_buffer_stride(struct livebox_buffer *handle)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_content_is_updated(const char *filename, int is_pd)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_request_close_pd(const char *pkgname, const char *id, int reason)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_freeze_scroller(const char *pkgname, const char *id)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_release_scroller(const char *pkgname, const char *id)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-PUBLIC int livebox_conf_auto_align(void)
-{
-       return LB_STATUS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* End of a file */
old mode 100644 (file)
new mode 100755 (executable)
similarity index 55%
rename from packaging/libdynamicbox.spec
rename to packaging/libwidget.spec
index bcba41b..361af65
@@ -1,7 +1,7 @@
 %bcond_with wayland
 
-Name: libdynamicbox
-Summary: Dynamicbox development library
+Name: libwidget
+Summary: widget development library
 Version: 1.0.0
 Release: 1
 Group: HomeTF/DynamicBox
@@ -10,8 +10,8 @@ Source0: %{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 BuildRequires: cmake, gettext-tools, coreutils
 BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(dynamicbox_service)
-BuildRequires: pkgconfig(dynamicbox_provider)
+BuildRequires: pkgconfig(widget_service)
+BuildRequires: pkgconfig(widget_provider)
 BuildRequires: pkgconfig(ecore)
 BuildRequires: pkgconfig(evas)
 BuildRequires: pkgconfig(elementary)
@@ -28,7 +28,7 @@ ExclusiveArch:
 %endif
 
 %description
-Library for the development of a dynamicbox 
+Library for the development of a widget 
 
 %package devel
 Summary: Dynamic Box development library (dev)
@@ -36,7 +36,7 @@ Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
 
 %description devel
-Header & Package configuration files for dynamicbox development
+Header & Package configuration files for widget development
 
 %prep
 %setup -q
@@ -77,46 +77,14 @@ mkdir -p %{buildroot}/%{_datarootdir}/license
 %files -n %{name}
 %defattr(-,root,root,-)
 %manifest %{name}.manifest
-%{_libdir}/libdynamicbox.so*
-%{_datarootdir}/license/libdynamicbox
+%{_libdir}/libwidget.so*
+%{_datarootdir}/license/libwidget
 
 %files devel
 %defattr(-,root,root,-)
 %manifest %{name}.manifest
-%{_includedir}/dynamicbox/dynamicbox.h
-%{_includedir}/dynamicbox/internal/dynamicbox.h
-%{_libdir}/pkgconfig/dynamicbox.pc
-
-#################################################
-# liblivebox (for old version)
-%package -n liblivebox
-Summary: Library for developing the dynamicbox (old version)
-Group: HomeTF/Dynamicbox
-License: Flora
-Requires: libdynamicbox
-
-%description -n liblivebox
-Provider APIs to develop the dynamicbox. (old version)
-
-%package -n liblivebox-devel
-Summary: Header & package configuration files to support development of the dynamicbox (old version)
-Group: Development/Libraries
-Requires: liblivebox
-
-%description -n liblivebox-devel
-Dynamicbox development library (dev) (old version)
-
-%files -n liblivebox
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%{_libdir}/liblivebox.so*
-%{_datarootdir}/license/liblivebox
-
-%files -n liblivebox-devel
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%{_includedir}/livebox/livebox.h
-%{_includedir}/livebox/livebox_product.h
-%{_libdir}/pkgconfig/livebox.pc
+%{_includedir}/widget/widget.h
+%{_includedir}/widget/internal/widget.h
+%{_libdir}/pkgconfig/widget.pc
 
 # End of a file
old mode 100644 (file)
new mode 100755 (executable)
similarity index 86%
rename from dynamicbox/patch/pixmap_ee.patch
rename to patch/pixmap_ee.patch
index 8996ccb..e144c5c
@@ -38,7 +38,7 @@ index 1c42a7c..7a487ff 100644
 +      /*!
 +       * Acquire a buffer for canvas.
 +       */
-+      info->handle = dynamicbox_acquire_buffer(info->id, info->is_gbar,
++      info->handle = widget_acquire_buffer(info->id, info->is_gbar,
 +                                      info->w, info->h, sizeof(int), 0,
 +                                      event_handler_cb, info);
 +      if (!info->handle) {
@@ -47,7 +47,7 @@ index 1c42a7c..7a487ff 100644
 +      }
 +
 +      info->is_hw = 0;
-+      return (Ecore_X_Pixmap)dynamicbox_resource_id(info->handle);
++      return (Ecore_X_Pixmap)widget_resource_id(info->handle);
 +}
 +
 +static void free_pixmap_cb(void *data, Ecore_X_Pixmap pixmap)
@@ -62,7 +62,7 @@ index 1c42a7c..7a487ff 100644
 +              ErrPrint("Impossible\n");
 +      }
 +
-+      dynamicbox_release_buffer(info->handle);
++      widget_release_buffer(info->handle);
 +      info->handle = NULL;
 +
 +      if (info->deleted) {
@@ -73,7 +73,7 @@ index 1c42a7c..7a487ff 100644
 +      }
 +}
 +
- PUBLIC Evas_Object *dynamicbox_get_evas_object(const char *id, int is_pd)
+ PUBLIC Evas_Object *widget_get_evas_object(const char *id, int is_pd)
  {
        struct info *info;
        Evas_Object *rect;
@@ -89,7 +89,7 @@ index 1c42a7c..7a487ff 100644
                s_info.alloc_canvas_with_stride = dlsym(RTLD_DEFAULT, "ecore_evas_buffer_allocfunc_with_stride_new");
                if (!s_info.alloc_canvas_with_stride) {
                        DbgPrint("allocfunc_with_stirde_new is not found\n");
-@@ -655,7 +718,7 @@ PUBLIC Evas_Object *dynamicbox_get_evas_object(const char *id, int is_pd)
+@@ -655,7 +718,7 @@ PUBLIC Evas_Object *widget_get_evas_object(const char *id, int is_pd)
                        ErrPrint("allocfunc_new is not found\n");
                }
  
@@ -98,11 +98,11 @@ index 1c42a7c..7a487ff 100644
                        ErrPrint("No way to allocate canvas\n");
                        return NULL;
                }
-@@ -687,10 +750,23 @@ PUBLIC Evas_Object *dynamicbox_get_evas_object(const char *id, int is_pd)
+@@ -687,10 +750,23 @@ PUBLIC Evas_Object *widget_get_evas_object(const char *id, int is_pd)
        info->w = 1;
        info->h = 1;
  
--      if (!dynamicbox_conf_auto_align() && s_info.alloc_canvas_with_stride) {
+-      if (!widget_conf_auto_align() && s_info.alloc_canvas_with_stride) {
 -              info->ee = s_info.alloc_canvas_with_stride(1, 1, alloc_stride_fb, free_fb, info);
 -      } else {
 -              info->ee = s_info.alloc_canvas(1, 1, alloc_fb, free_fb, info);
@@ -118,7 +118,7 @@ index 1c42a7c..7a487ff 100644
 +              /**
 +               * Fallback to buffer backend
 +               */
-+              if (!dynamicbox_conf_auto_align() && s_info.alloc_canvas_with_stride) {
++              if (!widget_conf_auto_align() && s_info.alloc_canvas_with_stride) {
 +                      info->ee = s_info.alloc_canvas_with_stride(1, 1, alloc_stride_fb, free_fb, info);
 +              } else {
 +                      info->ee = s_info.alloc_canvas(1, 1, alloc_fb, free_fb, info);
old mode 100644 (file)
new mode 100755 (executable)
similarity index 84%
rename from dynamicbox/patch/pixmap_ee_dbox.patch
rename to patch/pixmap_ee_widget.patch
index 93aeacb..0bdb73e
@@ -14,7 +14,7 @@ index 4f482ff..0e39eda 100644
  };
  
  /**
-@@ -486,6 +488,58 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
+@@ -486,6 +488,58 @@ static int event_handler_cb(struct widget_buffer *handler, struct widget
        return ret;
  }
  
@@ -35,7 +35,7 @@ index 4f482ff..0e39eda 100644
 +      /*!
 +       * Acquire a buffer for canvas.
 +       */
-+      info->handle = dynamicbox_acquire_buffer(info->id, info->is_gbar,
++      info->handle = widget_acquire_buffer(info->id, info->is_gbar,
 +                                      info->w, info->h, sizeof(int), 0,
 +                                      event_handler_cb, info);
 +      if (!info->handle) {
@@ -44,7 +44,7 @@ index 4f482ff..0e39eda 100644
 +      }
 +
 +      info->is_hw = 0;
-+      return (Ecore_X_Pixmap)dynamicbox_resource_id(info->handle);
++      return (Ecore_X_Pixmap)widget_resource_id(info->handle);
 +}
 +
 +static void free_pixmap_cb(void *data, Ecore_X_Pixmap pixmap)
@@ -59,7 +59,7 @@ index 4f482ff..0e39eda 100644
 +              ErrPrint("Impossible\n");
 +      }
 +
-+      dynamicbox_release_buffer(info->handle);
++      widget_release_buffer(info->handle);
 +      info->handle = NULL;
 +
 +      if (info->deleted) {
@@ -73,7 +73,7 @@ index 4f482ff..0e39eda 100644
  static void *alloc_fb(void *data, int size)
  {
        struct info *info = data;
-@@ -654,8 +708,14 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
+@@ -654,8 +708,14 @@ PUBLIC void *widget_get_evas_object(const char *id, int is_gbar)
  {
        struct info *info;
        Evas_Object *rect;
@@ -89,7 +89,7 @@ index 4f482ff..0e39eda 100644
                s_info.alloc_canvas_with_stride = dlsym(RTLD_DEFAULT, "ecore_evas_buffer_allocfunc_with_stride_new");
                if (!s_info.alloc_canvas_with_stride) {
                        DbgPrint("allocfunc_with_stirde_new is not found\n");
-@@ -666,7 +726,7 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
+@@ -666,7 +726,7 @@ PUBLIC void *widget_get_evas_object(const char *id, int is_gbar)
                        ErrPrint("allocfunc_new is not found\n");
                }
  
@@ -98,11 +98,11 @@ index 4f482ff..0e39eda 100644
                        ErrPrint("No way to allocate canvas\n");
                        return NULL;
                }
-@@ -698,10 +758,20 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
+@@ -698,10 +758,20 @@ PUBLIC void *widget_get_evas_object(const char *id, int is_gbar)
        info->w = 1;
        info->h = 1;
  
--      if (!dynamicbox_conf_auto_align() && s_info.alloc_canvas_with_stride) {
+-      if (!widget_conf_auto_align() && s_info.alloc_canvas_with_stride) {
 -              info->ee = s_info.alloc_canvas_with_stride(1, 1, alloc_stride_fb, free_fb, info);
 -      } else if (s_info.alloc_canvas) {
 -              info->ee = s_info.alloc_canvas(1, 1, alloc_fb, free_fb, info);
@@ -115,7 +115,7 @@ index 4f482ff..0e39eda 100644
 +      }
 +
 +      if (!info->ee) {
-+          if (!dynamicbox_conf_auto_align() && s_info.alloc_canvas_with_stride) {
++          if (!widget_conf_auto_align() && s_info.alloc_canvas_with_stride) {
 +                  info->ee = s_info.alloc_canvas_with_stride(1, 1, alloc_stride_fb, free_fb, info);
 +          } else if (s_info.alloc_canvas) {
 +                  info->ee = s_info.alloc_canvas(1, 1, alloc_fb, free_fb, info);
similarity index 100%
rename from dynamicbox/src/dlist.c
rename to src/dlist.c
old mode 100644 (file)
new mode 100755 (executable)
similarity index 86%
rename from dynamicbox/src/snapshot_window.c
rename to src/snapshot_window.c
index 3e1f089..a0b86e3
 #include <unistd.h>
 
 #include <dlog.h>
-#include <dynamicbox_service.h>
-#include <dynamicbox_errno.h>
+#include <widget_service.h>
+#include <widget_errno.h>
 
-#include "dynamicbox.h"
-#include "internal/dynamicbox.h"
+#include "widget.h"
+#include "internal/widget.h"
 #include "debug.h"
 
 #define QUALITY_N_COMPRESS "quality=100 compress=1"
@@ -33,7 +33,7 @@
 
 struct snapshot_info {
        char *id;
-       dynamicbox_flush_cb flush_cb;
+       widget_flush_cb flush_cb;
        void *data;
 
        Ecore_Timer *flush_timer;
@@ -78,7 +78,7 @@ static inline int flush_data_to_file(Evas *e, const char *data, const char *file
        output = evas_object_image_add(e);
        if (!output) {
                DbgPrint("Failed to create an image object\n");
-               return DBOX_STATUS_ERROR_FAULT;
+               return WIDGET_STATUS_ERROR_FAULT;
        }
 
        evas_object_image_data_set(output, NULL);
@@ -93,18 +93,18 @@ static inline int flush_data_to_file(Evas *e, const char *data, const char *file
        if (evas_object_image_save(output, filename, NULL, QUALITY_N_COMPRESS) == EINA_FALSE) {
                evas_object_del(output);
                DbgPrint("Faield to save a captured image (%s)\n", filename);
-               return DBOX_STATUS_ERROR_IO_ERROR;
+               return WIDGET_STATUS_ERROR_IO_ERROR;
        }
 
        evas_object_del(output);
 
        if (access(filename, F_OK) != 0) {
                DbgPrint("File %s is not found\n", filename);
-               return DBOX_STATUS_ERROR_IO_ERROR;
+               return WIDGET_STATUS_ERROR_IO_ERROR;
        }
 
        DbgPrint("Flush data to a file (%s)\n", filename);
-       return DBOX_STATUS_ERROR_NONE;
+       return WIDGET_STATUS_ERROR_NONE;
 }
 
 static inline int destroy_virtual_canvas(Evas *e)
@@ -114,11 +114,11 @@ static inline int destroy_virtual_canvas(Evas *e)
        ee = ecore_evas_ecore_evas_get(e);
        if (!ee) {
                DbgPrint("Failed to ecore evas object\n");
-               return DBOX_STATUS_ERROR_FAULT;
+               return WIDGET_STATUS_ERROR_FAULT;
        }
 
        ecore_evas_free(ee);
-       return DBOX_STATUS_ERROR_NONE;
+       return WIDGET_STATUS_ERROR_NONE;
 }
 
 static inline int flush_to_file(const void *canvas, const char *filename, int w, int h)
@@ -130,14 +130,14 @@ static inline int flush_to_file(const void *canvas, const char *filename, int w,
        shot_e = create_virtual_canvas(w, h);
        if (!shot_e) {
                ErrPrint("Unable to create a new virtual window\n");
-               return DBOX_STATUS_ERROR_FAULT;
+               return WIDGET_STATUS_ERROR_FAULT;
        }
 
        shot_ee = ecore_evas_ecore_evas_get(shot_e);
        if (!shot_ee) {
                ErrPrint("Unable to get Ecore_Evas\n");
                destroy_virtual_canvas(shot_e);
-               return DBOX_STATUS_ERROR_FAULT;
+               return WIDGET_STATUS_ERROR_FAULT;
        }
 
        ecore_evas_manual_render_set(shot_ee, EINA_TRUE);
@@ -155,8 +155,8 @@ static Eina_Bool snapshot_cb(void *data)
        Evas *e;
        Ecore_Evas *ee;
        void *canvas;
-       dynamicbox_flush_cb flush_cb;
-       int status = DBOX_STATUS_ERROR_NONE;
+       widget_flush_cb flush_cb;
+       int status = WIDGET_STATUS_ERROR_NONE;
 
        info = evas_object_data_get(snapshot_win, "snapshot,info");
        if (!info) {
@@ -167,7 +167,7 @@ static Eina_Bool snapshot_cb(void *data)
        if (info->flush_timer) {
                info->flush_timer = NULL;
        } else {
-               status = DBOX_STATUS_ERROR_CANCEL;
+               status = WIDGET_STATUS_ERROR_CANCEL;
        }
 
        flush_cb = info->flush_cb;
@@ -177,7 +177,7 @@ static Eina_Bool snapshot_cb(void *data)
        if (!e) {
                ErrPrint("Invalid object\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -186,7 +186,7 @@ static Eina_Bool snapshot_cb(void *data)
        if (!ee) {
                ErrPrint("Invalid object (ee)\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -195,7 +195,7 @@ static Eina_Bool snapshot_cb(void *data)
        if (!canvas) {
                DbgPrint("Failed to get pixel canvas\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -209,7 +209,7 @@ static Eina_Bool snapshot_cb(void *data)
 
                DbgPrint("Flush size: %dx%d\n", w, h);
                ret = flush_to_file(canvas, info->id, w, h);
-               if (status == DBOX_STATUS_ERROR_NONE) {
+               if (status == WIDGET_STATUS_ERROR_NONE) {
                        status = ret;
                }
 
@@ -260,7 +260,7 @@ static Eina_Bool direct_snapshot_cb(void *data)
        int status;
        int w;
        int h;
-       dynamicbox_flush_cb flush_cb;
+       widget_flush_cb flush_cb;
        Evas_Object *snapshot_win = data;
        struct snapshot_info *info;
 
@@ -278,7 +278,7 @@ static Eina_Bool direct_snapshot_cb(void *data)
        if (!e) {
                ErrPrint("Invalid object, failed to get Evas\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -287,7 +287,7 @@ static Eina_Bool direct_snapshot_cb(void *data)
        if (!ee) {
                ErrPrint("Unable to get Ecore_Evas object\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -299,7 +299,7 @@ static Eina_Bool direct_snapshot_cb(void *data)
        if (!canvas) {
                ErrPrint("Failed to get canvas\n");
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                return ECORE_CALLBACK_CANCEL;
        }
@@ -349,14 +349,14 @@ static void post_render_cb(void *data, Evas *e, void *event_info)
        DbgPrint("Fire the flush timer %lf (%d)\n", info->timeout, info->render_cnt);
        info->flush_timer = ecore_timer_add(info->timeout, snapshot_cb, snapshot_win);
        if (!info->flush_timer) {
-               dynamicbox_flush_cb flush_cb;
+               widget_flush_cb flush_cb;
 
                ErrPrint("Unalbe to add timer for getting the snapshot\n");
                flush_cb = info->flush_cb;
                info->flush_cb = NULL;
 
                if (flush_cb) {
-                       flush_cb(snapshot_win, info->id, DBOX_STATUS_ERROR_FAULT, info->data);
+                       flush_cb(snapshot_win, info->id, WIDGET_STATUS_ERROR_FAULT, info->data);
                }
                /*!
                 * \note
@@ -385,7 +385,7 @@ static void pre_render_cb(void *data, Evas *e, void *event_info)
        DbgPrint("Pre-render callback\n");
 }
 
-PUBLIC void *dynamicbox_snapshot_window_add(const char *id, int size_type)
+PUBLIC void *widget_snapshot_window_add(const char *id, int size_type)
 {
        struct snapshot_info *info;
        Evas_Object *snapshot_win;
@@ -394,7 +394,7 @@ PUBLIC void *dynamicbox_snapshot_window_add(const char *id, int size_type)
        int w;
        int h;
 
-       if (dynamicbox_service_get_size(size_type, &w, &h) != DBOX_STATUS_ERROR_NONE) {
+       if (widget_service_get_size(size_type, &w, &h) != WIDGET_STATUS_ERROR_NONE) {
                ErrPrint("Invalid size\n");
                return NULL;
        }
@@ -432,7 +432,7 @@ PUBLIC void *dynamicbox_snapshot_window_add(const char *id, int size_type)
                return NULL;
        }
 
-       snapshot_win = elm_win_add(parent, "DBox,Snapshot", ELM_WIN_DYNAMIC_BOX);
+       snapshot_win = elm_win_add(parent, "widget,Snapshot", ELM_WIN_DYNAMIC_BOX);
        evas_object_del(parent);
        if (!snapshot_win) {
                destroy_virtual_canvas(e);
@@ -454,19 +454,19 @@ PUBLIC void *dynamicbox_snapshot_window_add(const char *id, int size_type)
        return snapshot_win;
 }
 
-PUBLIC int dynamicbox_snapshot_window_flush(void *snapshot_win, double timeout, dynamicbox_flush_cb flush_cb, void *data)
+PUBLIC int widget_snapshot_window_flush(void *snapshot_win, double timeout, widget_flush_cb flush_cb, void *data)
 {
        struct snapshot_info *info;
 
        if (!flush_cb || timeout < 0.0f) {
                ErrPrint("Invalid argument (%p, %lf)\n", flush_cb, timeout);
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        info = evas_object_data_get(snapshot_win, "snapshot,info");
        if (!info) {
                ErrPrint("Invalid argument\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        info->timeout = timeout;
@@ -479,7 +479,7 @@ PUBLIC int dynamicbox_snapshot_window_flush(void *snapshot_win, double timeout,
                 */
                info->flush_timer = ecore_timer_add(0.0001f, direct_snapshot_cb, snapshot_win);
                if (!info->flush_timer) {
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
        } else if (info->render_cnt) {
                /*!
@@ -489,14 +489,14 @@ PUBLIC int dynamicbox_snapshot_window_flush(void *snapshot_win, double timeout,
                DbgPrint("Rendered %d times already\n", info->render_cnt);
                info->flush_timer = ecore_timer_add(info->timeout, snapshot_cb, snapshot_win);
                if (!info->flush_timer) {
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
        }
 
        info->flush_cb = flush_cb;
        info->data = data;
 
-       return DBOX_STATUS_ERROR_NONE;
+       return WIDGET_STATUS_ERROR_NONE;
 }
 
 /* End of a file */
similarity index 100%
rename from dynamicbox/src/util.c
rename to src/util.c
old mode 100644 (file)
new mode 100755 (executable)
similarity index 72%
rename from dynamicbox/src/virtual_window.c
rename to src/virtual_window.c
index d023d5b..58217f5
 #include <X11/Xlib.h>
 
 #include <dlog.h>
-#include <dynamicbox_errno.h>
-#include <dynamicbox_service.h>
-#include <dynamicbox_conf.h>
-#include <dynamicbox_buffer.h>
+#include <widget_errno.h>
+#include <widget_service.h>
+#include <widget_conf.h>
+#include <widget_buffer.h>
 
-#include "dynamicbox.h"
-#include "internal/dynamicbox.h"
+#include "widget.h"
+#include "internal/widget.h"
 #include "debug.h"
 
 #define IS_GBAR 1
 
 #define PUBLIC __attribute__((visibility("default")))
-#define DBOX_WIN_TAG "dynamic,box,win"
+#define WIDGET_WIN_TAG "dynamic,box,win"
 
-#define DBOX_DEFAULT_WIDTH 1
-#define DBOX_DEFAULT_HEIGHT 1
+#define WIDGET_DEFAULT_WIDTH 1
+#define WIDGET_DEFAULT_HEIGHT 1
 #define GL_ENGINE "opengl_x11"
 
 static struct static_info {
@@ -61,7 +61,7 @@ static struct static_info {
  */
 typedef struct virtual_window_info {
        char *id; /**< Identification */
-       dynamicbox_buffer_h handle; /**< Livebox buffer handle */
+       widget_buffer_h handle; /**< Livebox buffer handle */
        enum win_type {
                VWIN_SW_BUF = 0x00, /**< S/W buffer */
                VWIN_GEM    = 0x01, /**< GEM buffer */
@@ -95,7 +95,7 @@ static inline Evas_Object *get_highlighted_object(Evas_Object *obj)
  * @note
  * Every user event (mouse) on the buffer will be passed via this event callback
  */
-static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffer_event_data *event_info, void *data)
+static int event_handler_cb(widget_buffer_h handler, struct widget_buffer_event_data *event_info, void *data)
 {
        vwin_info_t info = data;
        Elm_Access_Action_Info action_info;
@@ -111,8 +111,8 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                return 0;
        }
 
-       if (DYNAMICBOX_CONF_USE_GETTIMEOFDAY) {
-               if (DYNAMICBOX_CONF_EVENT_FILTER > 0.0f && (info->pressed == 0 || event_info->type == DBOX_BUFFER_EVENT_MOVE)) {
+       if (WIDGET_CONF_USE_GETTIMEOFDAY) {
+               if (WIDGET_CONF_EVENT_FILTER > 0.0f && (info->pressed == 0 || event_info->type == WIDGET_BUFFER_EVENT_MOVE)) {
                        struct timeval tv;
 
                        if (gettimeofday(&tv, NULL) < 0) {
@@ -121,7 +121,7 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                                timestamp = (double)tv.tv_sec + (double)tv.tv_usec / 1000000.0f;
                                timestamp -= event_info->timestamp;
 
-                               if (timestamp > DYNAMICBOX_CONF_EVENT_FILTER) {
+                               if (timestamp > WIDGET_CONF_EVENT_FILTER) {
                                        DbgPrint("Dropped %lf\n", timestamp);
                                        return 0;
                                }
@@ -134,11 +134,11 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                 */
                timestamp = ecore_time_get() * 1000.0f;
        } else {
-               if (DYNAMICBOX_CONF_EVENT_FILTER > 0.0f && (info->pressed == 0 || event_info->type == DBOX_BUFFER_EVENT_MOVE)) {
+               if (WIDGET_CONF_EVENT_FILTER > 0.0f && (info->pressed == 0 || event_info->type == WIDGET_BUFFER_EVENT_MOVE)) {
                        timestamp = ecore_time_get();
 
                        timestamp -= event_info->timestamp;
-                       if (timestamp > DYNAMICBOX_CONF_EVENT_FILTER) {
+                       if (timestamp > WIDGET_CONF_EVENT_FILTER) {
                                DbgPrint("Dropped %lf\n", timestamp);
                                return 0;
                        }
@@ -152,34 +152,34 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
         * Feed up events
         */
        switch (event_info->type) {
-       case DBOX_BUFFER_EVENT_ON_HOLD:
+       case WIDGET_BUFFER_EVENT_ON_HOLD:
                flags = evas_event_default_flags_get(info->e);
                flags |= EVAS_EVENT_FLAG_ON_HOLD;
                evas_event_default_flags_set(info->e, flags);
                ErrPrint("ON_HOLD[%s] %dx%d - %lf\n", info->id, event_info->info.pointer.x, event_info->info.pointer.y, timestamp);
                break;
-       case DBOX_BUFFER_EVENT_OFF_HOLD:
+       case WIDGET_BUFFER_EVENT_OFF_HOLD:
                flags = evas_event_default_flags_get(info->e);
                flags &= ~EVAS_EVENT_FLAG_ON_HOLD;
                evas_event_default_flags_set(info->e, flags);
                break;
-       case DBOX_BUFFER_EVENT_ON_SCROLL:
+       case WIDGET_BUFFER_EVENT_ON_SCROLL:
                flags = evas_event_default_flags_get(info->e);
                flags |= EVAS_EVENT_FLAG_ON_SCROLL;
                evas_event_default_flags_set(info->e, flags);
                break;
-       case DBOX_BUFFER_EVENT_OFF_SCROLL:
+       case WIDGET_BUFFER_EVENT_OFF_SCROLL:
                flags = evas_event_default_flags_get(info->e);
                flags &= ~EVAS_EVENT_FLAG_ON_SCROLL;
                evas_event_default_flags_set(info->e, flags);
                break;
-       case DBOX_BUFFER_EVENT_ENTER:
+       case WIDGET_BUFFER_EVENT_ENTER:
                evas_event_feed_mouse_in(info->e, timestamp, NULL);
                break;
-       case DBOX_BUFFER_EVENT_LEAVE:
+       case WIDGET_BUFFER_EVENT_LEAVE:
                evas_event_feed_mouse_out(info->e, timestamp, NULL);
                break;
-       case DBOX_BUFFER_EVENT_DOWN:
+       case WIDGET_BUFFER_EVENT_DOWN:
                if (info->pressed) {
                        ErrPrint("MOUSE UP is not called\n");
                        ErrPrint("UP[%s] %dx%d - %lf\n", info->id, event_info->info.pointer.x, event_info->info.pointer.y, timestamp);
@@ -206,14 +206,14 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                info->pressed = 1;
                ErrPrint("DOWN[%s] %dx%d - %lf\n", info->id, event_info->info.pointer.x, event_info->info.pointer.y, timestamp);
                break;
-       case DBOX_BUFFER_EVENT_MOVE:
+       case WIDGET_BUFFER_EVENT_MOVE:
                /**
                 * @note
                 * Calculate the event occurred X & Y on the buffer
                 */
                evas_event_feed_mouse_move(info->e, event_info->info.pointer.x, event_info->info.pointer.y, timestamp, NULL);
                break;
-       case DBOX_BUFFER_EVENT_UP:
+       case WIDGET_BUFFER_EVENT_UP:
                evas_event_feed_mouse_move(info->e, event_info->info.pointer.x, event_info->info.pointer.y, timestamp, NULL);
                evas_event_feed_mouse_up(info->e, 1, EVAS_BUTTON_NONE, timestamp, NULL);
                info->pressed = 0;
@@ -225,10 +225,10 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                 */
                ErrPrint("UP[%s] %dx%d - %lf\n", info->id, event_info->info.pointer.x, event_info->info.pointer.y, timestamp);
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -243,77 +243,77 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                if (ret == EINA_TRUE) {
                        if (!get_highlighted_object(parent_elm)) {
                                ErrPrint("Highlighted object is not found\n");
-                               ret = DBOX_ACCESS_STATUS_ERROR;
+                               ret = WIDGET_ACCESS_STATUS_ERROR;
                        } else {
                                DbgPrint("Highlighted object is found\n");
-                               ret = DBOX_ACCESS_STATUS_DONE;
+                               ret = WIDGET_ACCESS_STATUS_DONE;
                        }
                } else {
                        ErrPrint("Action error\n");
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                }
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_HIGHLIGHT_NEXT;
                action_info.highlight_cycle = EINA_FALSE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_LAST : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_LAST : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_HIGHLIGHT_PREV;
                action_info.highlight_cycle = EINA_FALSE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_FIRST : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_FIRST : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTIVATE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTIVATE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_ACTIVATE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_UP:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_UP:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_UP;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_DOWN:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_DOWN:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_DOWN;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_UP:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_UP:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -322,12 +322,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -336,12 +336,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -350,23 +350,23 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_UNHIGHLIGHT;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_VALUE_CHANGE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_VALUE_CHANGE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -375,12 +375,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_MOUSE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_MOUSE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -389,12 +389,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_BACK:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_BACK:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -403,12 +403,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_OVER:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_OVER:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -417,12 +417,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_READ:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_READ:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -431,12 +431,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ENABLE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_ENABLE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -445,12 +445,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_DISABLE:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_ACCESS_DISABLE:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -459,12 +459,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                action_info.y = event_info->info.access.y;
                action_info.mouse_type = event_info->info.access.mouse_type;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_KEY_DOWN:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_KEY_DOWN:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
@@ -480,12 +480,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                        XFree(key_name);
                        XFree(key_string);
                }
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_UP:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_KEY_UP:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
@@ -501,12 +501,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                        XFree(key_name);
                        XFree(key_string);
                }
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_IN:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_IN:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
@@ -522,12 +522,12 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                        XFree(key_name);
                        XFree(key_string);
                }
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_OUT:
-               parent_elm = ecore_evas_data_get(info->ee, DBOX_WIN_TAG);
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_OUT:
+               parent_elm = ecore_evas_data_get(info->ee, WIDGET_WIN_TAG);
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
@@ -543,7 +543,7 @@ static int event_handler_cb(dynamicbox_buffer_h handler, struct dynamicbox_buffe
                        XFree(key_name);
                        XFree(key_string);
                }
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
        default:
                DbgPrint("Unhandled buffer event (%d)\n", event_info->type);
@@ -573,23 +573,23 @@ static Ecore_X_Pixmap alloc_pixmap_cb(void *data, Ecore_X_Window parent, int w,
        DbgPrint("Size of ee is updated: %dx%d - %d (info: %p)\n", info->w, info->h, depth, info);
        depth >>= 3;
 
-       if (dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER) == 0u) {
+       if (widget_resource_id(info->handle, WIDGET_PRIMARY_BUFFER) == 0u) {
                /**
                 * @note
                 * Need to allocate a primary buffer
                 */
-               dynamicbox_acquire_buffer(info->handle, DBOX_PRIMARY_BUFFER, info->w, info->h, depth);
+               widget_acquire_buffer(info->handle, WIDGET_PRIMARY_BUFFER, info->w, info->h, depth);
                if (!info->handle) {
                        ErrPrint("Failed to get the buffer\n");
                        return 0u;
                }
 
-               pixmap = (Ecore_X_Pixmap)dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER);
-       } else if (DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT > 0) {
+               pixmap = (Ecore_X_Pixmap)widget_resource_id(info->handle, WIDGET_PRIMARY_BUFFER);
+       } else if (WIDGET_CONF_EXTRA_BUFFER_COUNT > 0) {
                int idx;
 
                if (!info->resource_array) {
-                       info->resource_array = calloc(DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT, sizeof(*info->resource_array));
+                       info->resource_array = calloc(WIDGET_CONF_EXTRA_BUFFER_COUNT, sizeof(*info->resource_array));
                        if (!info->resource_array) {
                                ErrPrint("Out of memory: %s\n", strerror(errno));
                                return 0u;
@@ -597,29 +597,29 @@ static Ecore_X_Pixmap alloc_pixmap_cb(void *data, Ecore_X_Window parent, int w,
 
                        idx = 0;
                } else {
-                       for (idx = 0; idx < DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT; idx++) {
+                       for (idx = 0; idx < WIDGET_CONF_EXTRA_BUFFER_COUNT; idx++) {
                                if (info->resource_array[idx] == 0u) {
                                        break;
                                }
                        }
 
-                       if (idx == DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) {
+                       if (idx == WIDGET_CONF_EXTRA_BUFFER_COUNT) {
                                ErrPrint("Out of index: %d\n", idx);
                                return 0u;
                        }
                }
 
-               if (dynamicbox_acquire_buffer(info->handle, idx, info->w, info->h, depth) < 0) {
+               if (widget_acquire_buffer(info->handle, idx, info->w, info->h, depth) < 0) {
                        ErrPrint("Failed to acquire a buffer for %d\n", idx);
                        return 0u;
                }
 
-               info->resource_array[idx] = dynamicbox_resource_id(info->handle, idx);
+               info->resource_array[idx] = widget_resource_id(info->handle, idx);
                if (info->resource_array[idx] == 0u) {
                        ErrPrint("Failed to allocate pixmap\n");
                }
 
-               DbgPrint("Allocated index: %d/%d - %u\n", idx, DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT, info->resource_array[idx]);
+               DbgPrint("Allocated index: %d/%d - %u\n", idx, WIDGET_CONF_EXTRA_BUFFER_COUNT, info->resource_array[idx]);
                pixmap = info->resource_array[idx];
        } else {
                ErrPrint("Unable to allocate pixmap\n");
@@ -646,21 +646,21 @@ static void free_pixmap_cb(void *data, Ecore_X_Pixmap pixmap)
                ErrPrint("Impossible\n");
        }
 
-       if (dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER) == pixmap) {
-               if (dynamicbox_release_buffer(info->handle, DBOX_PRIMARY_BUFFER) < 0) {
+       if (widget_resource_id(info->handle, WIDGET_PRIMARY_BUFFER) == pixmap) {
+               if (widget_release_buffer(info->handle, WIDGET_PRIMARY_BUFFER) < 0) {
                        DbgPrint("Failed to release buffer\n");
                }
                info->resource_cnt--;
        } else {
                int idx;
 
-               for (idx = 0; idx < DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT; idx++) {
+               for (idx = 0; idx < WIDGET_CONF_EXTRA_BUFFER_COUNT; idx++) {
                        /**
                         * @note
                         * Find a index to release it
                         */
                        if (info->resource_array[idx] == pixmap) {
-                               if (dynamicbox_release_buffer(info->handle, idx) < 0) {
+                               if (widget_release_buffer(info->handle, idx) < 0) {
                                        DbgPrint("Failed to release buffer\n");
                                }
                                info->resource_array[idx] = 0u;
@@ -673,7 +673,7 @@ static void free_pixmap_cb(void *data, Ecore_X_Pixmap pixmap)
        if (info->deleted && info->resource_cnt == 0) {
                DbgPrint("Destroy buffer handle\n");
 
-               dynamicbox_destroy_buffer(info->handle);
+               widget_destroy_buffer(info->handle);
                free(info->resource_array);
                free(info->id);
                free(info);
@@ -695,7 +695,7 @@ static void *alloc_fb(void *data, int size)
                return NULL;
        }
 
-       if (dynamicbox_acquire_buffer(info->handle, DBOX_PRIMARY_BUFFER, info->w, info->h, sizeof(int)) < 0) {
+       if (widget_acquire_buffer(info->handle, WIDGET_PRIMARY_BUFFER, info->w, info->h, sizeof(int)) < 0) {
                ErrPrint("Failed to acquire buffer\n");
                return NULL;
        }
@@ -704,9 +704,9 @@ static void *alloc_fb(void *data, int size)
         * If it supports the H/W accelerated buffer,
         * Use it.
         */
-       if (dynamicbox_support_hw_buffer(info->handle)) {
-               if (dynamicbox_create_hw_buffer(info->handle) == 0) {
-                       buffer = dynamicbox_buffer_hw_buffer(info->handle);
+       if (widget_support_hw_buffer(info->handle)) {
+               if (widget_create_hw_buffer(info->handle) == 0) {
+                       buffer = widget_buffer_hw_buffer(info->handle);
                        if (buffer) {
                                DbgPrint("HW Accelerated buffer is created %p, (%dx%d)\n", info, info->w, info->h);
                                info->type = VWIN_GEM;
@@ -720,7 +720,7 @@ static void *alloc_fb(void *data, int size)
        /**
         * Or use the buffer of a S/W backend.
         */
-       buffer = dynamicbox_ref_buffer(info->handle);
+       buffer = widget_ref_buffer(info->handle);
        DbgPrint("SW buffer is created (%dx%d)\n", info->w, info->h);
        info->type = VWIN_SW_BUF;
        return buffer;
@@ -736,7 +736,7 @@ static void *alloc_stride_fb(void *data, int size, int *stride, int *bpp)
                int _stride;
 
                *bpp = sizeof(int);
-               _stride = dynamicbox_buffer_stride(info->handle);
+               _stride = widget_buffer_stride(info->handle);
                if (_stride < 0) {
                        _stride = info->w * *bpp;
                }
@@ -758,22 +758,22 @@ static void free_fb(void *data, void *ptr)
        }
 
        if (info->type == VWIN_GEM) {
-               if (dynamicbox_destroy_hw_buffer(info->handle) == 0) {
+               if (widget_destroy_hw_buffer(info->handle) == 0) {
                        DbgPrint("HW Accelerated buffer is destroyed\n");
                }
        } else if (info->type == VWIN_SW_BUF) {
                DbgPrint("SW buffer is destroyed, %p\n", info);
-               dynamicbox_unref_buffer(ptr);
+               widget_unref_buffer(ptr);
        } else if (info->type == VWIN_PIXMAP) {
                ErrPrint("Unable to reach to here\n");
        }
 
-       if (dynamicbox_release_buffer(info->handle, DBOX_PRIMARY_BUFFER) < 0) {
+       if (widget_release_buffer(info->handle, WIDGET_PRIMARY_BUFFER) < 0) {
                ErrPrint("Failed to release buffer\n");
        }
 
        if (info->deleted) {
-               dynamicbox_destroy_buffer(info->handle);
+               widget_destroy_buffer(info->handle);
                free(info->resource_array);
                free(info->id);
                free(info);
@@ -788,7 +788,7 @@ static void pre_render_cb(void *data, Evas *e, void *event_info)
                return;
        }
 
-       if (dynamicbox_conf_premultiplied_alpha()) {
+       if (widget_conf_premultiplied_alpha()) {
                Evas_Coord w;
                Evas_Coord h;
 
@@ -797,7 +797,7 @@ static void pre_render_cb(void *data, Evas *e, void *event_info)
        }
 
        if (info->type == VWIN_GEM) {
-               dynamicbox_buffer_pre_render(info->handle);
+               widget_buffer_pre_render(info->handle);
        } else if (info->type == VWIN_PIXMAP) {
                /**
                 * Only the pixmap type Ecore_Evas uses this variable
@@ -815,7 +815,7 @@ static void post_render_cb(void *data, Evas *e, void *event_info)
                return;
        }
 
-       if (dynamicbox_conf_premultiplied_alpha()) {
+       if (widget_conf_premultiplied_alpha()) {
                void *canvas;
                int x, y, w, h;
 
@@ -831,32 +831,32 @@ static void post_render_cb(void *data, Evas *e, void *event_info)
        }
 
        if (info->type == VWIN_GEM) {
-               dynamicbox_buffer_post_render(info->handle);
+               widget_buffer_post_render(info->handle);
        } else if (info->type == VWIN_PIXMAP) {
                int idx;
                unsigned int front_resource_id;
 
                front_resource_id = ecore_evas_gl_x11_pixmap_get(info->ee);
 
-               for (idx = 0; idx < DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT; idx++) {
+               for (idx = 0; idx < WIDGET_CONF_EXTRA_BUFFER_COUNT; idx++) {
                        if (front_resource_id == info->resource_array[idx]) {
                                /**
                                 */
-                               dynamicbox_send_updated_by_idx(info->handle, idx);
+                               widget_send_updated_by_idx(info->handle, idx);
                                break;
                        }
                }
 
-               if (idx == DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) {
+               if (idx == WIDGET_CONF_EXTRA_BUFFER_COUNT) {
                        /* Send updated event for PRIMARY BUFFER */
-                       if (front_resource_id == dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER)) {
-                               dynamicbox_send_updated_by_idx(info->handle, DBOX_PRIMARY_BUFFER);
+                       if (front_resource_id == widget_resource_id(info->handle, WIDGET_PRIMARY_BUFFER)) {
+                               widget_send_updated_by_idx(info->handle, WIDGET_PRIMARY_BUFFER);
                        } else {
-                               DbgPrint("Unable to send updated: %u (%u)\n", front_resource_id, dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER));
+                               DbgPrint("Unable to send updated: %u (%u)\n", front_resource_id, widget_resource_id(info->handle, WIDGET_PRIMARY_BUFFER));
                        }
                }
        } else if (info->type == VWIN_SW_BUF) {
-               dynamicbox_sync_buffer(info->handle);
+               widget_sync_buffer(info->handle);
        }
 }
 
@@ -879,7 +879,7 @@ static void ecore_evas_free_cb(Ecore_Evas *ee)
        info->ee = NULL;
 }
 
-PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
+PUBLIC void *widget_get_evas_object(const char *id, int is_gbar)
 {
        vwin_info_t info;
        Evas_Object *rect;
@@ -930,12 +930,12 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
        /**
         * Acquire a buffer for canvas.
         */
-       info->handle = dynamicbox_create_buffer(info->id, info->is_gbar,
-                       (dynamicbox_conf_auto_align() || !s_info.alloc_canvas_with_stride),
+       info->handle = widget_create_buffer(info->id, info->is_gbar,
+                       (widget_conf_auto_align() || !s_info.alloc_canvas_with_stride),
                        event_handler_cb, info);
 
        if (!info->handle) {
-               ErrPrint("Failed to create a dynamicbox buffer\n");
+               ErrPrint("Failed to create a widget buffer\n");
                free(info->id);
                free(info);
                return NULL;
@@ -944,8 +944,8 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
        /**
         * Size information must be initialized before call the ecore_evas_buffer_new.
         */
-       info->w = DBOX_DEFAULT_WIDTH;
-       info->h = DBOX_DEFAULT_HEIGHT;
+       info->w = WIDGET_DEFAULT_WIDTH;
+       info->h = WIDGET_DEFAULT_HEIGHT;
 
        engine = elm_config_preferred_engine_get();
        DbgPrint("Preferred engine: %s (%s)\n", engine, GL_ENGINE);
@@ -959,7 +959,7 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
        }
 
        if (!info->ee) {
-               if (!dynamicbox_conf_auto_align() && s_info.alloc_canvas_with_stride) {
+               if (!widget_conf_auto_align() && s_info.alloc_canvas_with_stride) {
                        info->ee = s_info.alloc_canvas_with_stride(info->w, info->h, alloc_stride_fb, free_fb, info);
                } else if (s_info.alloc_canvas) {
                        info->ee = s_info.alloc_canvas(info->w, info->h, alloc_fb, free_fb, info);
@@ -968,7 +968,7 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
 
        if (!info->ee) {
                ErrPrint("Failed to create ecore_evas (%dx%d)\n", info->w, info->h);
-               dynamicbox_destroy_buffer(info->handle);
+               widget_destroy_buffer(info->handle);
                free(info->id);
                free(info);
                return NULL;
old mode 100644 (file)
new mode 100755 (executable)
similarity index 75%
rename from dynamicbox/src/virtual_window_wayland.c
rename to src/virtual_window_wayland.c
index 1ac23a6..3fb3a75
 #include <Evas.h>
 
 #include <dlog.h>
-#include <dynamicbox_errno.h>
-#include <dynamicbox_service.h>
+#include <widget_errno.h>
+#include <widget_service.h>
 
-#include "dynamicbox.h"
+#include "widget.h"
 #include "debug.h"
 
 #define IS_PD 1
@@ -37,7 +37,7 @@
  */
 struct info {
        char *id; /*!< Identification */
-       struct dynamicbox_buffer *handle; /*!< Livebox buffer handle */
+       struct widget_buffer *handle; /*!< Livebox buffer handle */
        int is_hw; /*!< 1 if a buffer is created on the H/W accelerated place or 0 */
        Ecore_Evas *ee;
        Evas *e;
@@ -59,7 +59,7 @@ static inline Evas_Object *get_highlighted_object(Evas_Object *obj)
  * \note
  * Every user event (mouse) on the buffer will be passed via this event callback
  */
-static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox_buffer_event_data *event_info, void *data)
+static int event_handler_cb(struct widget_buffer *handler, struct widget_buffer_event_data *event_info, void *data)
 {
        struct info *info = data;
        Elm_Access_Action_Info action_info;
@@ -78,13 +78,13 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
         * Feed up events
         */
        switch (event_info->type) {
-       case DBOX_BUFFER_EVENT_ENTER:
+       case WIDGET_BUFFER_EVENT_ENTER:
                evas_event_feed_mouse_in(info->e, event_info->timestamp * 1000, NULL);
                break;
-       case DBOX_BUFFER_EVENT_LEAVE:
+       case WIDGET_BUFFER_EVENT_LEAVE:
                evas_event_feed_mouse_out(info->e, event_info->timestamp * 1000, NULL);
                break;
-       case DBOX_BUFFER_EVENT_DOWN:
+       case WIDGET_BUFFER_EVENT_DOWN:
                /*!
                 * \note
                 * Calculate the event occurred X & Y on the buffer
@@ -92,21 +92,21 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
                evas_event_feed_mouse_move(info->e, event_info->info.pointer.x, event_info->info.pointer.y, (event_info->timestamp - 0.001f) * 1000, NULL); /* + 0.1f just for fake event */
                evas_event_feed_mouse_down(info->e, 1, EVAS_BUTTON_NONE, event_info->timestamp * 1000, NULL); /* + 0.2f just for fake event */
                break;
-       case DBOX_BUFFER_EVENT_MOVE:
+       case WIDGET_BUFFER_EVENT_MOVE:
                /*!
                 * \note
                 * Calculate the event occurred X & Y on the buffer
                 */
                evas_event_feed_mouse_move(info->e, event_info->info.pointer.x, event_info->info.pointer.y, event_info->timestamp * 1000, NULL);
                break;
-       case DBOX_BUFFER_EVENT_UP:
+       case WIDGET_BUFFER_EVENT_UP:
                evas_event_feed_mouse_move(info->e, event_info->info.pointer.x, event_info->info.pointer.y, event_info->timestamp * 1000, NULL);
                evas_event_feed_mouse_up(info->e, 1, EVAS_BUTTON_NONE, (event_info->timestamp + 0.001f) * 1000, NULL);
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -121,77 +121,77 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
                if (ret == EINA_TRUE) {
                        if (!get_highlighted_object(parent_elm)) {
                                LOGE("Highlighted object is not found\n");
-                               ret = DBOX_ACCESS_STATUS_ERROR;
+                               ret = WIDGET_ACCESS_STATUS_ERROR;
                        } else {
                                LOGD("Highlighted object is found\n");
-                               ret = DBOX_ACCESS_STATUS_DONE;
+                               ret = WIDGET_ACCESS_STATUS_DONE;
                        }
                } else {
                        LOGE("Action error\n");
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                }
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_HIGHLIGHT_NEXT;
                action_info.highlight_cycle = EINA_FALSE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_LAST : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_LAST : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_HIGHLIGHT_PREV;
                action_info.highlight_cycle = EINA_FALSE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_FIRST : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_FIRST : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTIVATE:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTIVATE:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_ACTIVATE;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_UP:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_UP:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_UP;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_DOWN:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_DOWN:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_DOWN;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_UP:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_UP:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -200,12 +200,12 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
                action_info.y = event_info->info.pointer.y;
                action_info.mouse_type = 2;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -214,12 +214,12 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
                action_info.y = event_info->info.pointer.y;
                action_info.mouse_type = 1;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
@@ -228,54 +228,54 @@ static int event_handler_cb(struct dynamicbox_buffer *handler, struct dynamicbox
                action_info.y = event_info->info.pointer.y;
                action_info.mouse_type = 0;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
+       case WIDGET_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
                memset(&action_info, 0, sizeof(action_info));
                action_type = ELM_ACCESS_ACTION_UNHIGHLIGHT;
                ret = elm_access_action(parent_elm, action_type, &action_info);
-               ret = (ret == EINA_FALSE) ? DBOX_ACCESS_STATUS_ERROR : DBOX_ACCESS_STATUS_DONE;
+               ret = (ret == EINA_FALSE) ? WIDGET_ACCESS_STATUS_ERROR : WIDGET_ACCESS_STATUS_DONE;
                break;
-       case DBOX_BUFFER_EVENT_KEY_DOWN:
+       case WIDGET_BUFFER_EVENT_KEY_DOWN:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_UP:
+       case WIDGET_BUFFER_EVENT_KEY_UP:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_IN:
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_IN:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_OUT:
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_OUT:
                parent_elm = ecore_evas_data_get(info->ee, "dynamic,box,win");
                if (!parent_elm) {
-                       ret = DBOX_ACCESS_STATUS_ERROR;
+                       ret = WIDGET_ACCESS_STATUS_ERROR;
                        break;
                }
 
-               ret = DBOX_KEY_STATUS_ERROR;
+               ret = WIDGET_KEY_STATUS_ERROR;
                break;
        default:
                LOGD("Unhandled buffer event (%d)\n", event_info->type);
@@ -302,7 +302,7 @@ static void *alloc_fb(void *data, int size)
        /*!
         * Acquire a buffer for canvas.
         */
-       info->handle = dynamicbox_acquire_buffer(info->id, info->is_gbar,
+       info->handle = widget_acquire_buffer(info->id, info->is_gbar,
                        width, height,
                        event_handler_cb, info);
 
@@ -310,9 +310,9 @@ static void *alloc_fb(void *data, int size)
         * If it supports the H/W accelerated buffer,
         * Use it.
         */
-       if (dynamicbox_support_hw_buffer(info->handle)) {
-               if (dynamicbox_create_hw_buffer(info->handle) == 0) {
-                       buffer = dynamicbox_buffer_hw_buffer(info->handle);
+       if (widget_support_hw_buffer(info->handle)) {
+               if (widget_create_hw_buffer(info->handle) == 0) {
+                       buffer = widget_buffer_hw_buffer(info->handle);
                        if (buffer) {
                                LOGD("HW Accelerated buffer is created\n");
                                info->is_hw = 1;
@@ -326,7 +326,7 @@ static void *alloc_fb(void *data, int size)
        /*!
         * Or use the buffer of a S/W backend.
         */
-       buffer = dynamicbox_ref_buffer(info->handle);
+       buffer = widget_ref_buffer(info->handle);
        LOGD("SW buffer is created\n");
        info->is_hw = 0;
        return buffer;
@@ -341,16 +341,16 @@ static void free_fb(void *data, void *ptr)
        }
 
        if (info->is_hw) {
-               if (dynamicbox_destroy_hw_buffer(info->handle) == 0) {
+               if (widget_destroy_hw_buffer(info->handle) == 0) {
                        LOGD("HW Accelerated buffer is destroyed\n");
                        goto out;
                }
        }
 
-       dynamicbox_unref_buffer(ptr);
+       widget_unref_buffer(ptr);
        LOGD("SW buffer is destroyed\n");
 out:
-       dynamicbox_release_buffer(info->handle);
+       widget_release_buffer(info->handle);
        info->handle = NULL;
 }
 
@@ -363,7 +363,7 @@ static void pre_render_cb(void *data, Evas *e, void *event_info)
        }
 
        if (info->is_hw) {
-               dynamicbox_buffer_pre_render(info->handle);
+               widget_buffer_pre_render(info->handle);
        }
 }
 
@@ -376,13 +376,13 @@ static void post_render_cb(void *data, Evas *e, void *event_info)
        }
 
        if (info->is_hw) {
-               dynamicbox_buffer_post_render(info->handle);
+               widget_buffer_post_render(info->handle);
        } else {
-               dynamicbox_sync_buffer(info->handle);
+               widget_sync_buffer(info->handle);
        }
 }
 
-PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
+PUBLIC void *widget_get_evas_object(const char *id, int is_gbar)
 {
        struct info *info;
        Evas_Object *rect;
old mode 100644 (file)
new mode 100755 (executable)
similarity index 54%
rename from dynamicbox/src/dynamicbox.c
rename to src/widget.c
index 548779e..58ddba3
 #include <dlfcn.h>
 
 #include <dlog.h>
-#include <dynamicbox_errno.h>
-#include <dynamicbox_service.h>
-#include <dynamicbox_provider.h>
-#include <dynamicbox_provider_buffer.h>
-#include <dynamicbox_conf.h>
-#include <dynamicbox_buffer.h>
+#include <widget_errno.h>
+#include <widget_service.h>
+#include <widget_provider.h>
+#include <widget_provider_buffer.h>
+#include <widget_conf.h>
+#include <widget_buffer.h>
 #include <Evas.h>
 #include <Ecore.h>
 
 #include "debug.h"
 #include "dlist.h"
 #include "util.h"
-#include "dynamicbox.h"
-#include "internal/dynamicbox.h"
+#include "widget.h"
+#include "internal/widget.h"
 
 #define PUBLIC __attribute__((visibility("default")))
 
@@ -61,7 +61,7 @@ struct block {
        char *target_id;
 };
 
-struct dynamicbox_desc {
+struct widget_desc {
        FILE *fp;
        int for_pd;
 
@@ -70,12 +70,12 @@ struct dynamicbox_desc {
        struct dlist *block_list;
 };
 
-struct dynamicbox_buffer_data {
+struct widget_buffer_data {
        int is_gbar;
        int accelerated;
 
        /* for Buffer event wrapper */
-       int (*handler)(dynamicbox_buffer_h , dynamicbox_buffer_event_data_t, void *);
+       int (*handler)(widget_buffer_h , widget_buffer_event_data_t, void *);
        void *cbdata;
 
        char *content;
@@ -103,11 +103,11 @@ static struct info {
 
        union _updated {
                struct _slave {
-                       int (*send)(const char *pkgname, const char *id, dynamicbox_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile);
+                       int (*send)(const char *pkgname, const char *id, widget_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile);
                } slave;
 
                struct _app {
-                       int (*send)(dynamicbox_buffer_h handle, int idx, int x, int y, int w, int h, int gbar);
+                       int (*send)(widget_buffer_h handle, int idx, int x, int y, int w, int h, int gbar);
                } app;
        } updated;
 } s_info = {
@@ -118,23 +118,23 @@ static struct info {
        .type = LOAD_TYPE_UNKNOWN,    /* Not initialized */
 };
 
-#define FUNC_PREFIX                               "dynamicbox_"
-#define FUNC_DYNAMICBOX_SEND_UPDATED              FUNC_PREFIX "send_buffer_updated"
-#define FUNC_DYNAMICBOX_PROVIDER_APP_UPDATED      FUNC_PREFIX "provider_app_buffer_updated"
-#define FUNC_DYNAMICBOX_FIND_PKGNAME              FUNC_PREFIX "find_pkgname"
-#define FUNC_DYNAMICBOX_REQUEST_UPDATE_BY_ID      FUNC_PREFIX "request_update_by_id"
-#define FUNC_DYNAMICBOX_TRIGGER_UPDATE_MONITOR    FUNC_PREFIX "trigger_update_monitor"
-#define FUNC_DYNAMICBOX_UPDATE_EXTRA_INFO         FUNC_PREFIX "update_extra_info"
+#define FUNC_PREFIX                               "widget_"
+#define FUNC_WIDGET_SEND_UPDATED              FUNC_PREFIX "send_buffer_updated"
+#define FUNC_WIDGET_PROVIDER_APP_UPDATED      FUNC_PREFIX "provider_app_buffer_updated"
+#define FUNC_WIDGET_FIND_PKGNAME              FUNC_PREFIX "find_pkgname"
+#define FUNC_WIDGET_REQUEST_UPDATE_BY_ID      FUNC_PREFIX "request_update_by_id"
+#define FUNC_WIDGET_TRIGGER_UPDATE_MONITOR    FUNC_PREFIX "trigger_update_monitor"
+#define FUNC_WIDGET_UPDATE_EXTRA_INFO         FUNC_PREFIX "update_extra_info"
 
 static inline void load_update_function(void)
 {
        /* Must to be checked the slave function first. */
-       s_info.updated.slave.send = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_SEND_UPDATED);
+       s_info.updated.slave.send = dlsym(RTLD_DEFAULT, FUNC_WIDGET_SEND_UPDATED);
        if (s_info.updated.slave.send) {
                s_info.type = LOAD_TYPE_SLAVE;
                DbgPrint("Slave detected\n");
        } else {
-               s_info.updated.app.send = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_PROVIDER_APP_UPDATED);
+               s_info.updated.app.send = dlsym(RTLD_DEFAULT, FUNC_WIDGET_PROVIDER_APP_UPDATED);
                if (s_info.updated.app.send) {
                        s_info.type = LOAD_TYPE_APP;
                        DbgPrint("App detected\n");
@@ -142,9 +142,9 @@ static inline void load_update_function(void)
        }
 }
 
-static int send_updated(const char *pkgname, const char *id, dynamicbox_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile)
+static int send_updated(const char *pkgname, const char *id, widget_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile)
 {
-       int ret = DBOX_STATUS_ERROR_INVALID_PARAMETER;
+       int ret = WIDGET_STATUS_ERROR_INVALID_PARAMETER;
 
        if (s_info.type == LOAD_TYPE_UNKNOWN) {
                load_update_function();
@@ -158,13 +158,13 @@ static int send_updated(const char *pkgname, const char *id, dynamicbox_buffer_h
                 */
                ret = s_info.updated.slave.send(pkgname, id, handle, idx, x, y, w, h, gbar, descfile);
        } else {
-               dynamicbox_damage_region_t region = {
+               widget_damage_region_t region = {
                        .x = x,
                        .y = y,
                        .w = w,
                        .h = h,
                };
-               ret = dynamicbox_provider_send_buffer_updated(handle, idx, &region, gbar, descfile);
+               ret = widget_provider_send_buffer_updated(handle, idx, &region, gbar, descfile);
        }
 
        return ret;
@@ -186,65 +186,65 @@ static char *id_to_uri(const char *id)
        return uri;
 }
 
-static inline int event_handler_wrapper(dynamicbox_buffer_h buffer, dynamicbox_buffer_event_data_t event_info, void *data)
+static inline int event_handler_wrapper(widget_buffer_h buffer, widget_buffer_event_data_t event_info, void *data)
 {
        const char *pkgname;
        const char *id;
-       struct dynamicbox_buffer_data *cbdata = data;
+       struct widget_buffer_data *cbdata = data;
        int ret;
 
-       pkgname = dynamicbox_provider_buffer_pkgname(buffer);
+       pkgname = widget_provider_buffer_pkgname(buffer);
        if (!pkgname) {
                ErrPrint("pkgname is not valid\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       id = dynamicbox_provider_buffer_id(buffer);
+       id = widget_provider_buffer_id(buffer);
        if (!id) {
                ErrPrint("id is not valid[%s]\n", pkgname);
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (cbdata->handler) {
                ret = cbdata->handler(buffer, event_info, cbdata->cbdata);
        } else {
-               ret = DBOX_STATUS_ERROR_FAULT;
+               ret = WIDGET_STATUS_ERROR_FAULT;
        }
 
        switch (event_info->type) {
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT:
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
-       case DBOX_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
-       case DBOX_BUFFER_EVENT_ACCESS_ACTIVATE:
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_UP:
-       case DBOX_BUFFER_EVENT_ACCESS_ACTION_DOWN:
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_UP:
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
-       case DBOX_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
-       case DBOX_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
-       case DBOX_BUFFER_EVENT_ACCESS_VALUE_CHANGE:
-       case DBOX_BUFFER_EVENT_ACCESS_MOUSE:
-       case DBOX_BUFFER_EVENT_ACCESS_BACK:
-       case DBOX_BUFFER_EVENT_ACCESS_OVER:
-       case DBOX_BUFFER_EVENT_ACCESS_READ:
-       case DBOX_BUFFER_EVENT_ACCESS_ENABLE:
-       case DBOX_BUFFER_EVENT_ACCESS_DISABLE:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_NEXT:
+       case WIDGET_BUFFER_EVENT_ACCESS_HIGHLIGHT_PREV:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTIVATE:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_UP:
+       case WIDGET_BUFFER_EVENT_ACCESS_ACTION_DOWN:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_UP:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_MOVE:
+       case WIDGET_BUFFER_EVENT_ACCESS_SCROLL_DOWN:
+       case WIDGET_BUFFER_EVENT_ACCESS_UNHIGHLIGHT:
+       case WIDGET_BUFFER_EVENT_ACCESS_VALUE_CHANGE:
+       case WIDGET_BUFFER_EVENT_ACCESS_MOUSE:
+       case WIDGET_BUFFER_EVENT_ACCESS_BACK:
+       case WIDGET_BUFFER_EVENT_ACCESS_OVER:
+       case WIDGET_BUFFER_EVENT_ACCESS_READ:
+       case WIDGET_BUFFER_EVENT_ACCESS_ENABLE:
+       case WIDGET_BUFFER_EVENT_ACCESS_DISABLE:
                DbgPrint("Accessibility event: %d\n", event_info->type);
                if (ret < 0) {
-                       (void)dynamicbox_provider_send_access_status(pkgname, id, DBOX_ACCESS_STATUS_ERROR);
+                       (void)widget_provider_send_access_status(pkgname, id, WIDGET_ACCESS_STATUS_ERROR);
                } else {
-                       (void)dynamicbox_provider_send_access_status(pkgname, id, ret);
+                       (void)widget_provider_send_access_status(pkgname, id, ret);
                }
                break;
-       case DBOX_BUFFER_EVENT_KEY_UP:
-       case DBOX_BUFFER_EVENT_KEY_DOWN:
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_IN:
-       case DBOX_BUFFER_EVENT_KEY_FOCUS_OUT:
+       case WIDGET_BUFFER_EVENT_KEY_UP:
+       case WIDGET_BUFFER_EVENT_KEY_DOWN:
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_IN:
+       case WIDGET_BUFFER_EVENT_KEY_FOCUS_OUT:
                DbgPrint("Key event: %d\n", event_info->type);
                if (ret < 0) {
-                       (void)dynamicbox_provider_send_key_status(pkgname, id, DBOX_KEY_STATUS_ERROR);
+                       (void)widget_provider_send_key_status(pkgname, id, WIDGET_KEY_STATUS_ERROR);
                } else {
-                       (void)dynamicbox_provider_send_key_status(pkgname, id, ret);
+                       (void)widget_provider_send_key_status(pkgname, id, ret);
                }
                break;
        default:
@@ -254,34 +254,34 @@ static inline int event_handler_wrapper(dynamicbox_buffer_h buffer, dynamicbox_b
        return ret;
 }
 
-static inline int default_event_handler(dynamicbox_buffer_h buffer, dynamicbox_buffer_event_data_t event_info, void *data)
+static inline int default_event_handler(widget_buffer_h buffer, widget_buffer_event_data_t event_info, void *data)
 {
        /* NOP */
        return 0;
 }
 
-PUBLIC const int DBOX_DONE = 0x00;
-PUBLIC const int DBOX_OUTPUT_UPDATED = 0x02;
-PUBLIC const int DBOX_USE_NET = 0x04;
-
-PUBLIC const int DBOX_NEED_TO_SCHEDULE = 0x01;
-PUBLIC const int DBOX_NEED_TO_CREATE = 0x01;
-PUBLIC const int DBOX_NEED_TO_DESTROY = 0x01;
-PUBLIC const int DBOX_FORCE_TO_SCHEDULE = 0x08;
-
-PUBLIC const int DBOX_SYS_EVENT_FONT_CHANGED = 0x01;
-PUBLIC const int DBOX_SYS_EVENT_LANG_CHANGED = 0x02;
-PUBLIC const int DBOX_SYS_EVENT_TIME_CHANGED = 0x04;
-PUBLIC const int DBOX_SYS_EVENT_REGION_CHANGED = 0x08;
-PUBLIC const int DBOX_SYS_EVENT_TTS_CHANGED = 0x10;
-PUBLIC const int DBOX_SYS_EVENT_PAUSED = 0x0100;
-PUBLIC const int DBOX_SYS_EVENT_RESUMED = 0x0200;
-PUBLIC const int DBOX_SYS_EVENT_MMC_STATUS_CHANGED = 0x0400;
-PUBLIC const int DBOX_SYS_EVENT_DELETED = 0x0800;
-
-PUBLIC struct dynamicbox_desc *dynamicbox_desc_open(const char *filename, int for_pd)
+PUBLIC const int WIDGET_DONE = 0x00;
+PUBLIC const int WIDGET_OUTPUT_UPDATED = 0x02;
+PUBLIC const int WIDGET_USE_NET = 0x04;
+
+PUBLIC const int WIDGET_NEED_TO_SCHEDULE = 0x01;
+PUBLIC const int WIDGET_NEED_TO_CREATE = 0x01;
+PUBLIC const int WIDGET_NEED_TO_DESTROY = 0x01;
+PUBLIC const int WIDGET_FORCE_TO_SCHEDULE = 0x08;
+
+PUBLIC const int WIDGET_SYS_EVENT_FONT_CHANGED = 0x01;
+PUBLIC const int WIDGET_SYS_EVENT_LANG_CHANGED = 0x02;
+PUBLIC const int WIDGET_SYS_EVENT_TIME_CHANGED = 0x04;
+PUBLIC const int WIDGET_SYS_EVENT_REGION_CHANGED = 0x08;
+PUBLIC const int WIDGET_SYS_EVENT_TTS_CHANGED = 0x10;
+PUBLIC const int WIDGET_SYS_EVENT_PAUSED = 0x0100;
+PUBLIC const int WIDGET_SYS_EVENT_RESUMED = 0x0200;
+PUBLIC const int WIDGET_SYS_EVENT_MMC_STATUS_CHANGED = 0x0400;
+PUBLIC const int WIDGET_SYS_EVENT_DELETED = 0x0800;
+
+PUBLIC struct widget_desc *widget_desc_open(const char *filename, int for_pd)
 {
-       struct dynamicbox_desc *handle;
+       struct widget_desc *handle;
        char *new_fname;
 
        handle = calloc(1, sizeof(*handle));
@@ -324,14 +324,14 @@ PUBLIC struct dynamicbox_desc *dynamicbox_desc_open(const char *filename, int fo
        return handle;
 }
 
-PUBLIC int dynamicbox_desc_close(struct dynamicbox_desc *handle)
+PUBLIC int widget_desc_close(struct widget_desc *handle)
 {
        struct dlist *l;
        struct dlist *n;
        struct block *block;
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        dlist_foreach_safe(handle->block_list, l, n, block) {
@@ -376,33 +376,33 @@ PUBLIC int dynamicbox_desc_close(struct dynamicbox_desc *handle)
                ErrPrint("fclose: %s\n", strerror(errno));
        }
        free(handle);
-       return DBOX_STATUS_ERROR_NONE;
+       return WIDGET_STATUS_ERROR_NONE;
 }
 
-PUBLIC int dynamicbox_desc_set_category(struct dynamicbox_desc *handle, const char *id, const char *category)
+PUBLIC int widget_desc_set_category(struct widget_desc *handle, const char *id, const char *category)
 {
        struct block *block;
 
        if (!handle || !category) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        block = calloc(1, sizeof(*block));
        if (!block) {
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
-       block->type = strdup(DBOX_DESC_TYPE_INFO);
+       block->type = strdup(WIDGET_DESC_TYPE_INFO);
        if (!block->type) {
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->part = strdup("category");
        if (!block->part) {
                free(block->type);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->data = strdup(category);
@@ -410,7 +410,7 @@ PUBLIC int dynamicbox_desc_set_category(struct dynamicbox_desc *handle, const ch
                free(block->type);
                free(block->part);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        if (id) {
@@ -420,7 +420,7 @@ PUBLIC int dynamicbox_desc_set_category(struct dynamicbox_desc *handle, const ch
                        free(block->type);
                        free(block->part);
                        free(block);
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        }
 
@@ -429,31 +429,31 @@ PUBLIC int dynamicbox_desc_set_category(struct dynamicbox_desc *handle, const ch
        return block->idx;
 }
 
-PUBLIC int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *id, int w, int h)
+PUBLIC int widget_desc_set_size(struct widget_desc *handle, const char *id, int w, int h)
 {
        struct block *block;
        char buffer[BUFSIZ];
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        block = calloc(1, sizeof(*block));
        if (!block) {
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
-       block->type = strdup(DBOX_DESC_TYPE_INFO);
+       block->type = strdup(WIDGET_DESC_TYPE_INFO);
        if (!block->type) {
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->part = strdup("size");
        if (!block->part) {
                free(block->type);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        if (id) {
@@ -462,7 +462,7 @@ PUBLIC int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *
                        free(block->part);
                        free(block->type);
                        free(block);
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        }
 
@@ -473,7 +473,7 @@ PUBLIC int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *
                free(block->part);
                free(block->type);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->idx = handle->last_idx++;
@@ -481,47 +481,47 @@ PUBLIC int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *
        return block->idx;
 }
 
-PUBLIC int dynamicbox_desc_set_id(struct dynamicbox_desc *handle, int idx, const char *id)
+PUBLIC int widget_desc_set_id(struct widget_desc *handle, int idx, const char *id)
 {
        struct dlist *l;
        struct block *block;
 
        dlist_foreach(handle->block_list, l, block) {
                if (block->idx == idx) {
-                       if (strcasecmp(block->type, DBOX_DESC_TYPE_SCRIPT)) {
+                       if (strcasecmp(block->type, WIDGET_DESC_TYPE_SCRIPT)) {
                                ErrPrint("Invalid block is used\n");
-                               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+                               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
                        }
 
                        free(block->target_id);
                        block->target_id = NULL;
 
                        if (!id || !strlen(id)) {
-                               return DBOX_STATUS_ERROR_NONE;
+                               return WIDGET_STATUS_ERROR_NONE;
                        }
 
                        block->target_id = strdup(id);
                        if (!block->target_id) {
                                ErrPrint("Heap: %s\n", strerror(errno));
-                               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                        }
 
-                       return DBOX_STATUS_ERROR_NONE;
+                       return WIDGET_STATUS_ERROR_NONE;
                }
        }
 
-       return DBOX_STATUS_ERROR_NOT_EXIST;
+       return WIDGET_STATUS_ERROR_NOT_EXIST;
 }
 
 /*!
  * \return idx
  */
-PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option)
+PUBLIC int widget_desc_add_block(struct widget_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option)
 {
        struct block *block;
 
        if (!handle || !type) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (!part) {
@@ -535,14 +535,14 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
        block = calloc(1, sizeof(*block));
        if (!block) {
                ErrPrint("Heap: %s\n", strerror(errno));
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->type = strdup(type);
        if (!block->type) {
                ErrPrint("Heap: %s\n", strerror(errno));
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->part = strdup(part);
@@ -550,7 +550,7 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
                ErrPrint("Heap: %s\n", strerror(errno));
                free(block->type);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        block->data = strdup(data);
@@ -559,7 +559,7 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
                free(block->type);
                free(block->part);
                free(block);
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        if (option) {
@@ -570,7 +570,7 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
                        free(block->type);
                        free(block->part);
                        free(block);
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        }
 
@@ -583,7 +583,7 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
                        free(block->type);
                        free(block->part);
                        free(block);
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        }
 
@@ -592,13 +592,13 @@ PUBLIC int dynamicbox_desc_add_block(struct dynamicbox_desc *handle, const char
        return block->idx;
 }
 
-PUBLIC int dynamicbox_desc_del_block(struct dynamicbox_desc *handle, int idx)
+PUBLIC int widget_desc_del_block(struct widget_desc *handle, int idx)
 {
        struct dlist *l;
        struct block *block;
 
        if (!handle || idx < 0) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        dlist_foreach(handle->block_list, l, block) {
@@ -611,19 +611,19 @@ PUBLIC int dynamicbox_desc_del_block(struct dynamicbox_desc *handle, int idx)
                        free(block->id);
                        free(block->target_id);
                        free(block);
-                       return DBOX_STATUS_ERROR_NONE;
+                       return WIDGET_STATUS_ERROR_NONE;
                }
        }
 
-       return DBOX_STATUS_ERROR_NOT_EXIST;
+       return WIDGET_STATUS_ERROR_NOT_EXIST;
 }
 
-PUBLIC int dynamicbox_acquire_buffer(dynamicbox_buffer_h handle, int idx, int width, int height, int pixel_size)
+PUBLIC int widget_acquire_buffer(widget_buffer_h handle, int idx, int width, int height, int pixel_size)
 {
        int ret;
 
-       if (!handle || width <= 0 || height <= 0 || pixel_size <= 0 || idx > DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+       if (!handle || width <= 0 || height <= 0 || pixel_size <= 0 || idx > WIDGET_CONF_EXTRA_BUFFER_COUNT) {
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (idx >= 0) {
@@ -631,7 +631,7 @@ PUBLIC int dynamicbox_acquire_buffer(dynamicbox_buffer_h handle, int idx, int wi
                int _height = 0;
                int _pixel_size = 0;
                /* To validate the buffer */
-               if (dynamicbox_provider_buffer_get_size(handle, &_width, &_height, &_pixel_size) < 0) {
+               if (widget_provider_buffer_get_size(handle, &_width, &_height, &_pixel_size) < 0) {
                        ErrPrint("Failed to get buffer size\n");
                }
 
@@ -639,19 +639,19 @@ PUBLIC int dynamicbox_acquire_buffer(dynamicbox_buffer_h handle, int idx, int wi
                        DbgPrint("Extra buffer's geometry is not matched with primary one\n");
                }
 
-               ret = dynamicbox_provider_buffer_extra_acquire(handle, idx, width, height, pixel_size);
+               ret = widget_provider_buffer_extra_acquire(handle, idx, width, height, pixel_size);
        } else {
-               ret = dynamicbox_provider_buffer_acquire(handle, width, height, pixel_size);
+               ret = widget_provider_buffer_acquire(handle, width, height, pixel_size);
        }
 
        return ret;
 }
 
-PUBLIC dynamicbox_buffer_h dynamicbox_create_buffer(const char *filename, int is_gbar, int auto_align, int (*handler)(dynamicbox_buffer_h , dynamicbox_buffer_event_data_t, void *), void *data)
+PUBLIC widget_buffer_h widget_create_buffer(const char *filename, int is_gbar, int auto_align, int (*handler)(widget_buffer_h , widget_buffer_event_data_t, void *), void *data)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        const char *pkgname;
-       dynamicbox_buffer_h handle;
+       widget_buffer_h handle;
        char *uri;
 
        if (!filename) {
@@ -677,9 +677,9 @@ PUBLIC dynamicbox_buffer_h dynamicbox_create_buffer(const char *filename, int is
        }
 
        if (!s_info.find_pkgname) {
-               s_info.find_pkgname = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_FIND_PKGNAME);
+               s_info.find_pkgname = dlsym(RTLD_DEFAULT, FUNC_WIDGET_FIND_PKGNAME);
                if (!s_info.find_pkgname) {
-                       ErrPrint("Failed to find a \"dynamicbox_find_pkgname\"\n");
+                       ErrPrint("Failed to find a \"widget_find_pkgname\"\n");
                        free(user_data);
                        free(uri);
                        return NULL;
@@ -694,39 +694,39 @@ PUBLIC dynamicbox_buffer_h dynamicbox_create_buffer(const char *filename, int is
                return NULL;
        }
 
-       handle = dynamicbox_provider_buffer_create((!!is_gbar) ? DBOX_TYPE_GBAR : DBOX_TYPE_DBOX, pkgname, uri, auto_align, event_handler_wrapper, user_data);
+       handle = widget_provider_buffer_create((!!is_gbar) ? WIDGET_TYPE_GBAR : WIDGET_TYPE_WIDGET, pkgname, uri, auto_align, event_handler_wrapper, user_data);
        free(uri);
        if (!handle) {
                free(user_data);
                return NULL;
        }
 
-       (void)dynamicbox_provider_buffer_set_user_data(handle, user_data);
+       (void)widget_provider_buffer_set_user_data(handle, user_data);
        return handle;
 }
 
-PUBLIC int dynamicbox_request_update(const char *filename)
+PUBLIC int widget_request_update(const char *filename)
 {
        char *uri;
        int ret;
 
        if (!filename) {
                ErrPrint("Invalid argument\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        uri = id_to_uri(filename);
        if (!uri) {
                ErrPrint("Heap: %s\n", strerror(errno));
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        if (!s_info.request_update_by_id) {
-               s_info.request_update_by_id = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_REQUEST_UPDATE_BY_ID);
+               s_info.request_update_by_id = dlsym(RTLD_DEFAULT, FUNC_WIDGET_REQUEST_UPDATE_BY_ID);
                if (!s_info.request_update_by_id) {
-                       ErrPrint("\"dynamicbox_request_update_by_id\" is not exists\n");
+                       ErrPrint("\"widget_request_update_by_id\" is not exists\n");
                        free(uri);
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
        }
 
@@ -735,50 +735,50 @@ PUBLIC int dynamicbox_request_update(const char *filename)
        return ret;
 }
 
-PUBLIC unsigned int dynamicbox_resource_id(dynamicbox_buffer_h handle, int idx)
+PUBLIC unsigned int widget_resource_id(widget_buffer_h handle, int idx)
 {
        int ret;
 
-       if (!handle || idx > DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+       if (!handle || idx > WIDGET_CONF_EXTRA_BUFFER_COUNT) {
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (idx >= 0) {
-               ret = dynamicbox_provider_buffer_extra_resource_id(handle, idx);
+               ret = widget_provider_buffer_extra_resource_id(handle, idx);
        } else {
-               ret = dynamicbox_provider_buffer_resource_id(handle);
+               ret = widget_provider_buffer_resource_id(handle);
        }
 
        return ret;
 }
 
-PUBLIC int dynamicbox_release_buffer(dynamicbox_buffer_h handle, int idx)
+PUBLIC int widget_release_buffer(widget_buffer_h handle, int idx)
 {
        int ret;
 
-       if (!handle || idx > DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+       if (!handle || idx > WIDGET_CONF_EXTRA_BUFFER_COUNT) {
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (idx >= 0) {
-               ret = dynamicbox_provider_buffer_extra_release(handle, idx);
+               ret = widget_provider_buffer_extra_release(handle, idx);
        } else {
-               ret = dynamicbox_provider_buffer_release(handle);
+               ret = widget_provider_buffer_release(handle);
        }
 
        DbgPrint("Release buffer: %d (%d)\n", idx, ret);
        return ret;
 }
 
-PUBLIC int dynamicbox_destroy_buffer(dynamicbox_buffer_h handle)
+PUBLIC int widget_destroy_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (user_data) {
                if (user_data->frame_wait_timer) {
                        ecore_timer_del(user_data->frame_wait_timer);
@@ -789,16 +789,16 @@ PUBLIC int dynamicbox_destroy_buffer(dynamicbox_buffer_h handle)
                free(user_data->icon);
                free(user_data->name);
                free(user_data);
-               dynamicbox_provider_buffer_set_user_data(handle, NULL);
+               widget_provider_buffer_set_user_data(handle, NULL);
        }
 
        DbgPrint("Destroy buffer\n");
-       return dynamicbox_provider_buffer_destroy(handle);
+       return widget_provider_buffer_destroy(handle);
 }
 
-PUBLIC void *dynamicbox_ref_buffer(dynamicbox_buffer_h handle)
+PUBLIC void *widget_ref_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        void *data;
        int w, h, size;
        int ret;
@@ -807,7 +807,7 @@ PUBLIC void *dynamicbox_ref_buffer(dynamicbox_buffer_h handle)
                return NULL;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
                return NULL;
        }
@@ -817,31 +817,31 @@ PUBLIC void *dynamicbox_ref_buffer(dynamicbox_buffer_h handle)
                return NULL;
        }
 
-       ret = dynamicbox_provider_buffer_get_size(handle, &w, &h, &size);
+       ret = widget_provider_buffer_get_size(handle, &w, &h, &size);
 
-       data = dynamicbox_provider_buffer_ref(handle);
+       data = widget_provider_buffer_ref(handle);
        if (data && !ret && w > 0 && h > 0 && size > 0) {
                memset(data, 0, w * h * size);
-               (void)dynamicbox_provider_buffer_sync(handle);
+               (void)widget_provider_buffer_sync(handle);
        }
 
        DbgPrint("Ref buffer %ds%d(%d)\n", w, h, size);
        return data;
 }
 
-PUBLIC int dynamicbox_unref_buffer(void *buffer)
+PUBLIC int widget_unref_buffer(void *buffer)
 {
        if (!buffer) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        DbgPrint("Unref buffer\n");
-       return dynamicbox_provider_buffer_unref(buffer);
+       return widget_provider_buffer_unref(buffer);
 }
 
-PUBLIC int dynamicbox_sync_buffer(dynamicbox_buffer_h handle)
+PUBLIC int widget_sync_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        const char *pkgname;
        const char *id;
        int w;
@@ -850,35 +850,35 @@ PUBLIC int dynamicbox_sync_buffer(dynamicbox_buffer_h handle)
        int ret;
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
                ErrPrint("Invalid buffer\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (user_data->accelerated) {
                DbgPrint("H/W Buffer allocated. skip the sync buffer\n");
-               return DBOX_STATUS_ERROR_NONE;
+               return WIDGET_STATUS_ERROR_NONE;
        }
 
-       pkgname = dynamicbox_provider_buffer_pkgname(handle);
+       pkgname = widget_provider_buffer_pkgname(handle);
        if (!pkgname) {
                ErrPrint("Invalid buffer handler\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       id = dynamicbox_provider_buffer_id(handle);
+       id = widget_provider_buffer_id(handle);
        if (!id) {
                ErrPrint("Invalid buffer handler\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       (void)dynamicbox_provider_buffer_sync(handle);
+       (void)widget_provider_buffer_sync(handle);
 
-       if (dynamicbox_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
+       if (widget_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
                ErrPrint("Failed to get size (%s)\n", id);
        }
 
@@ -887,7 +887,7 @@ PUBLIC int dynamicbox_sync_buffer(dynamicbox_buffer_h handle)
         * manipulate the damaged region, so send update event only for the damaged region.
         * to make more efficient updates
         */
-       ret = send_updated(pkgname, id, handle, DBOX_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
+       ret = send_updated(pkgname, id, handle, WIDGET_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
        if (ret < 0) {
                ErrPrint("Failed to send%supdated (%s)\n", user_data->is_gbar ? " GBAR " : " ", id);
        }
@@ -895,9 +895,9 @@ PUBLIC int dynamicbox_sync_buffer(dynamicbox_buffer_h handle)
        return ret;
 }
 
-PUBLIC int dynamicbox_send_updated_by_idx(dynamicbox_buffer_h handle, int idx)
+PUBLIC int widget_send_updated_by_idx(widget_buffer_h handle, int idx)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        const char *pkgname;
        const char *id;
        int w;
@@ -905,25 +905,25 @@ PUBLIC int dynamicbox_send_updated_by_idx(dynamicbox_buffer_h handle, int idx)
        int pixel_size;
        int ret;
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
                ErrPrint("Invalid buffer\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       pkgname = dynamicbox_provider_buffer_pkgname(handle);
+       pkgname = widget_provider_buffer_pkgname(handle);
        if (!pkgname) {
                ErrPrint("Invalid buffer handler\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       id = dynamicbox_provider_buffer_id(handle);
+       id = widget_provider_buffer_id(handle);
        if (!id) {
                ErrPrint("Invalid buffer handler\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       if (dynamicbox_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
+       if (widget_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
                ErrPrint("Failed to get size (%s)\n", id);
        }
 
@@ -935,102 +935,102 @@ PUBLIC int dynamicbox_send_updated_by_idx(dynamicbox_buffer_h handle, int idx)
        return ret;
 }
 
-PUBLIC int dynamicbox_support_hw_buffer(dynamicbox_buffer_h handle)
+PUBLIC int widget_support_hw_buffer(widget_buffer_h handle)
 {
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       return dynamicbox_provider_buffer_is_support_hw(handle);
+       return widget_provider_buffer_is_support_hw(handle);
 }
 
-PUBLIC int dynamicbox_create_hw_buffer(dynamicbox_buffer_h handle)
+PUBLIC int widget_create_hw_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        int ret;
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (user_data->accelerated) {
-               return DBOX_STATUS_ERROR_ALREADY;
+               return WIDGET_STATUS_ERROR_ALREADY;
        }
 
-       ret = dynamicbox_provider_buffer_create_hw(handle);
+       ret = widget_provider_buffer_create_hw(handle);
        user_data->accelerated = (ret == 0);
        return ret;
 }
 
-PUBLIC int dynamicbox_destroy_hw_buffer(dynamicbox_buffer_h handle)
+PUBLIC int widget_destroy_hw_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
 
        if (!handle) {
                LOGD("handle is NULL\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data || !user_data->accelerated) {
                LOGD("user_data is NULL\n");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        user_data->accelerated = 0;
 
-       return dynamicbox_provider_buffer_destroy_hw(handle);
+       return widget_provider_buffer_destroy_hw(handle);
 }
 
-PUBLIC void *dynamicbox_buffer_hw_buffer(dynamicbox_buffer_h handle)
+PUBLIC void *widget_buffer_hw_buffer(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
 
        if (!handle) {
                return NULL;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data || !user_data->accelerated) {
                return NULL;
        }
 
-       return dynamicbox_provider_buffer_hw_addr(handle);
+       return widget_provider_buffer_hw_addr(handle);
 }
 
-PUBLIC int dynamicbox_buffer_pre_render(dynamicbox_buffer_h handle)
+PUBLIC int widget_buffer_pre_render(widget_buffer_h handle)
 {
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
 
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (!user_data->accelerated) {
-               return DBOX_STATUS_ERROR_NONE;
+               return WIDGET_STATUS_ERROR_NONE;
        }
 
        /*!
         * \note
         * Do preprocessing for accessing the H/W render buffer
         */
-       return dynamicbox_provider_buffer_pre_render(handle);
+       return widget_provider_buffer_pre_render(handle);
 }
 
 static Eina_Bool frame_wait_cb(void *data)
 {
-       dynamicbox_buffer_h handle = data;
-       struct dynamicbox_buffer_data *user_data;
+       widget_buffer_h handle = data;
+       struct widget_buffer_data *user_data;
        const char *pkgname;
        const char *id;
        int pixel_size;
@@ -1038,14 +1038,14 @@ static Eina_Bool frame_wait_cb(void *data)
        int w;
        int h;
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
                ErrPrint("Failed to get a user data\n");
                return ECORE_CALLBACK_CANCEL;
        }
 
-       pkgname = dynamicbox_provider_buffer_pkgname(handle);
-       id = dynamicbox_provider_buffer_id(handle);
+       pkgname = widget_provider_buffer_pkgname(handle);
+       id = widget_provider_buffer_id(handle);
 
        if (!pkgname || !id) {
                ErrPrint("Failed to get instance information (%s), (%s)\n", pkgname, id);
@@ -1053,7 +1053,7 @@ static Eina_Bool frame_wait_cb(void *data)
                return ECORE_CALLBACK_CANCEL;
        }
 
-       if (dynamicbox_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
+       if (widget_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
                ErrPrint("Failed to get size (%s)\n", id);
                w = 0;
                h = 0;
@@ -1067,23 +1067,23 @@ static Eina_Bool frame_wait_cb(void *data)
         * manipulate the damaged region, so send update event only for the damaged region.
         * to make more efficient updates
         */
-       ret = send_updated(pkgname, id, handle, DBOX_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
+       ret = send_updated(pkgname, id, handle, WIDGET_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
        if (ret < 0) {
                ErrPrint("Failed to send%supdated (%s)\n", user_data->is_gbar ? " GBAR " : " ", id);
        }
 
-       (void)dynamicbox_provider_buffer_clear_frame_skip(handle);
+       (void)widget_provider_buffer_clear_frame_skip(handle);
 
        user_data->frame_wait_timer = NULL;
        return ECORE_CALLBACK_CANCEL;
 }
 
-PUBLIC int dynamicbox_buffer_post_render(dynamicbox_buffer_h handle)
+PUBLIC int widget_buffer_post_render(widget_buffer_h handle)
 {
        int ret;
        const char *pkgname;
        const char *id;
-       struct dynamicbox_buffer_data *user_data;
+       struct widget_buffer_data *user_data;
        int w;
        int h;
        int pixel_size;
@@ -1092,43 +1092,43 @@ PUBLIC int dynamicbox_buffer_post_render(dynamicbox_buffer_h handle)
 
        if (!handle) {
                PERF_MARK("post_render");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       user_data = dynamicbox_provider_buffer_user_data(handle);
+       user_data = widget_provider_buffer_user_data(handle);
        if (!user_data) {
                PERF_MARK("post_render");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (!user_data->accelerated) {
                PERF_MARK("post_render");
-               return DBOX_STATUS_ERROR_NONE;
+               return WIDGET_STATUS_ERROR_NONE;
        }
 
-       pkgname = dynamicbox_provider_buffer_pkgname(handle);
+       pkgname = widget_provider_buffer_pkgname(handle);
        if (!pkgname) {
                ErrPrint("Invalid buffer handle\n");
                PERF_MARK("post_render");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       id = dynamicbox_provider_buffer_id(handle);
+       id = widget_provider_buffer_id(handle);
        if (!id) {
                ErrPrint("Invalid buffer handler\n");
                PERF_MARK("post_render");
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       ret = dynamicbox_provider_buffer_post_render(handle);
+       ret = widget_provider_buffer_post_render(handle);
        if (ret < 0) {
                ErrPrint("Failed to post render processing\n");
                PERF_MARK("post_render");
                return ret;
        }
 
-       if (dynamicbox_provider_buffer_frame_skip(handle) == 0) {
-               if (dynamicbox_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
+       if (widget_provider_buffer_frame_skip(handle) == 0) {
+               if (widget_provider_buffer_get_size(handle, &w, &h, &pixel_size) < 0) {
                        ErrPrint("Failed to get size (%s)\n", id);
                }
 
@@ -1137,7 +1137,7 @@ PUBLIC int dynamicbox_buffer_post_render(dynamicbox_buffer_h handle)
                 * manipulate the damaged region, so send update event only for the damaged region.
                 * to make more efficient updates
                 */
-               ret = send_updated(pkgname, id, handle, DBOX_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
+               ret = send_updated(pkgname, id, handle, WIDGET_PRIMARY_BUFFER, 0, 0, w, h, user_data->is_gbar, NULL);
                if (ret < 0) {
                        ErrPrint("Failed to send%supdated (%s)\n", user_data->is_gbar ? " GBAR " : " ", id);
                }
@@ -1161,29 +1161,29 @@ PUBLIC int dynamicbox_buffer_post_render(dynamicbox_buffer_h handle)
        return ret;
 }
 
-PUBLIC int dynamicbox_buffer_stride(dynamicbox_buffer_h handle)
+PUBLIC int widget_buffer_stride(widget_buffer_h handle)
 {
        if (!handle) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       return dynamicbox_provider_buffer_stride(handle);
+       return widget_provider_buffer_stride(handle);
 }
 
-PUBLIC int dynamicbox_content_is_updated(const char *filename, int is_gbar)
+PUBLIC int widget_content_is_updated(const char *filename, int is_gbar)
 {
        if (!s_info.trigger_update_monitor) {
-               s_info.trigger_update_monitor = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_TRIGGER_UPDATE_MONITOR);
+               s_info.trigger_update_monitor = dlsym(RTLD_DEFAULT, FUNC_WIDGET_TRIGGER_UPDATE_MONITOR);
                if (!s_info.trigger_update_monitor) {
                        ErrPrint("Trigger update monitor function is not exists\n");
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
        }
 
        return s_info.trigger_update_monitor(filename, is_gbar);
 }
 
-PUBLIC int dynamicbox_request_close_glance_bar(const char *pkgname, const char *id, int reason)
+PUBLIC int widget_request_close_glance_bar(const char *pkgname, const char *id, int reason)
 {
        char *uri;
        int schema_len = strlen(FILE_SCHEMA);
@@ -1191,86 +1191,86 @@ PUBLIC int dynamicbox_request_close_glance_bar(const char *pkgname, const char *
 
        if (!pkgname || !id) {
                ErrPrint("Invalid parameters (%s) (%s)\n", pkgname, id);
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        if (strncmp(id, FILE_SCHEMA, schema_len)) {
                uri = id_to_uri(id);
                if (!uri) {
                        ErrPrint("Heap: %s\n", strerror(errno));
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        } else {
                uri = strdup(id);
                if (!uri) {
                        ErrPrint("Heap: %s\n", strerror(errno));
-                       return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+                       return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
                }
        }
 
-       ret = dynamicbox_provider_send_request_close_gbar(pkgname, uri, reason);
+       ret = widget_provider_send_request_close_gbar(pkgname, uri, reason);
        free(uri);
        return ret;
 }
 
-PUBLIC int dynamicbox_freeze_scroller(const char *pkgname, const char *id)
+PUBLIC int widget_freeze_scroller(const char *pkgname, const char *id)
 {
        char *uri;
        int ret;
 
        if (!pkgname || !id) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        uri = id_to_uri(id);
        if (!uri) {
                ErrPrint("Heap: %s\n", strerror(errno));
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
-       ret = dynamicbox_provider_send_hold_scroll(pkgname, uri, 1);
+       ret = widget_provider_send_hold_scroll(pkgname, uri, 1);
        free(uri);
        return ret;
 }
 
-PUBLIC int dynamicbox_thaw_scroller(const char *pkgname, const char *id)
+PUBLIC int widget_thaw_scroller(const char *pkgname, const char *id)
 {
        char *uri;
        int ret;
 
        if (!pkgname || !id) {
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
        uri = id_to_uri(id);
        if (!uri) {
                ErrPrint("Heap: %s\n", strerror(errno));
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
-       ret = dynamicbox_provider_send_hold_scroll(pkgname, uri, 0);
+       ret = widget_provider_send_hold_scroll(pkgname, uri, 0);
        free(uri);
        return ret;
 }
 
-PUBLIC int dynamicbox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name)
+PUBLIC int widget_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name)
 {
-       dynamicbox_buffer_h handle;
+       widget_buffer_h handle;
        const char *pkgname;
        char *uri;
 
        uri = id_to_uri(id);
        if (!uri) {
                ErrPrint("Heap: %s\n", strerror(errno));
-               return DBOX_STATUS_ERROR_OUT_OF_MEMORY;
+               return WIDGET_STATUS_ERROR_OUT_OF_MEMORY;
        }
 
        if (!s_info.find_pkgname) {
-               s_info.find_pkgname = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_FIND_PKGNAME);
+               s_info.find_pkgname = dlsym(RTLD_DEFAULT, FUNC_WIDGET_FIND_PKGNAME);
                if (!s_info.find_pkgname) {
-                       ErrPrint("Failed to find a \"dynamicbox_find_pkgname\"\n");
+                       ErrPrint("Failed to find a \"widget_find_pkgname\"\n");
                        free(uri);
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
        }
 
@@ -1278,18 +1278,18 @@ PUBLIC int dynamicbox_set_extra_info(const char *id, const char *content, const
        if (!pkgname) {
                ErrPrint("Failed to find a package (%s)\n", uri);
                free(uri);
-               return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+               return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
        }
 
-       handle = dynamicbox_provider_buffer_find_buffer(DBOX_TYPE_DBOX, pkgname, uri);
+       handle = widget_provider_buffer_find_buffer(WIDGET_TYPE_WIDGET, pkgname, uri);
        if (handle) {
-               struct dynamicbox_buffer_data *user_data;
+               struct widget_buffer_data *user_data;
 
-               user_data = dynamicbox_provider_buffer_user_data(handle);
+               user_data = widget_provider_buffer_user_data(handle);
                if (!user_data) {
                        ErrPrint("User data is not available\n");
                        free(uri);
-                       return DBOX_STATUS_ERROR_FAULT;
+                       return WIDGET_STATUS_ERROR_FAULT;
                }
 
                if (content && strlen(content)) {
@@ -1352,20 +1352,20 @@ PUBLIC int dynamicbox_set_extra_info(const char *id, const char *content, const
                        }
                }
 
-               if (dynamicbox_provider_send_extra_info(pkgname, uri, -1.0f, user_data->content, user_data->title, user_data->icon, user_data->name) < 0) {
+               if (widget_provider_send_extra_info(pkgname, uri, -1.0f, user_data->content, user_data->title, user_data->icon, user_data->name) < 0) {
                        ErrPrint("Failed to send extra info (%s)\n", id);
                }
 
                free(uri);
-               return DBOX_STATUS_ERROR_NONE;
+               return WIDGET_STATUS_ERROR_NONE;
        }
        free(uri);
 
        if (!s_info.update_extra_info) {
-               s_info.update_extra_info = dlsym(RTLD_DEFAULT, FUNC_DYNAMICBOX_UPDATE_EXTRA_INFO);
+               s_info.update_extra_info = dlsym(RTLD_DEFAULT, FUNC_WIDGET_UPDATE_EXTRA_INFO);
                if (!s_info.update_extra_info) {
-                       ErrPrint("Failed to find a \"dynamicbox_update_extra_info\"\n");
-                       return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+                       ErrPrint("Failed to find a \"widget_update_extra_info\"\n");
+                       return WIDGET_STATUS_ERROR_INVALID_PARAMETER;
                }
        }
 
old mode 100644 (file)
new mode 100755 (executable)
similarity index 51%
rename from livebox/livebox.pc.in
rename to widget.pc.in
index 9290a7b..c2c8256
@@ -3,9 +3,10 @@ exec_prefix=@EXEC_PREFIX@
 libdir=@LIBDIR@
 includedir=@INCLUDEDIR@
 
-Name: livebox
-Description: livebox supporting library
+Name: widget
+Description: widget supporting library
 Version: @VERSION@
-Libs: -L${libdir} -llivebox -ldynamicbox
+Requires.private: widget_service >= 1.0.0 widget_provider >= 1.0.0
+Libs: -L${libdir} -lwidget
 Cflags: -I${includedir}
 cppflags: -I${includedir}