Add theme loader
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 22 Apr 2020 01:52:16 +0000 (10:52 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 25 May 2020 04:28:15 +0000 (13:28 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/theme/api/theme.cc
src/theme/api/theme.h
src/theme/api/theme_loader.cc
src/theme/api/theme_loader.h

index 8e84d99..6e2ee60 100644 (file)
 
 #include "theme/api/theme.h"
 
+int theme_get_id(theme_h handle, char **id) {
+    return 0;
+}
+
+int theme_get_version(theme_h handle, char **ver) {
+    return 0;
+}
+int theme_get_tool_version(theme_h handle, char **ver) {
+    return 0;
+}
+
+int theme_get_title(theme_h handle, char **title) {
+    return 0;
+}
+
+int theme_get_resolution(theme_h handle, char **resolution) {
+    return 0;
+}
+
+int theme_get_preview(theme_h handle, char **preview) {
+    return 0;
+}
+
+int theme_get_description(theme_h handle, char **description) {
+    return 0;
+}
+
+int theme_get_string(const char *key, char **val) {
+    return 0;
+}
+
+int theme_get_string_array(const char *key, char ***val, int *cnt) {
+    return 0;
+}
+
+int theme_get_int(const char *key, int *val) {
+    return 0;
+}
+
+int theme_get_float(const char *key, float *val) {
+    return 0;
+}
+
+int theme_get_bool(const char *key, bool *val) {
+    return 0;
+}
+
+int theme_clone(theme_h handle, theme_h *new_handle) {
+    return 0;
+}
+
+int theme_destroy(theme_h handle) {
+    return 0;
+}
\ No newline at end of file
index 0eef2ff..408a1ea 100644 (file)
 extern "C" {
 #endif
 
+typedef void *theme_h;
+
+int theme_get_id(theme_h handle, char **id);
+
+int theme_get_version(theme_h handle, char **ver);
+
+int theme_get_tool_version(theme_h handle, char **ver);
+
+int theme_get_title(theme_h handle, char **title);
+
+int theme_get_resolution(theme_h handle, char **resolution);
+
+int theme_get_preview(theme_h handle, char **preview);
+
+int theme_get_description(theme_h handle, char **description);
+
+int theme_get_string(const char *key, char **val);
+
+int theme_get_string_array(const char *key, char ***val, int *cnt);
+
+int theme_get_int(const char *key, int *val);
+
+int theme_get_float(const char *key, float *val);
+
+int theme_get_bool(const char *key, bool *val);
+
+int theme_clone(theme_h handle, theme_h *new_handle);
+
+int theme_destroy(theme_h handle);
 
 #ifdef __cplusplus
 }
index 1195afa..eea2303 100644 (file)
 
 #include "theme/api/theme_loader.h"
 
+int theme_loader_create(theme_loader_h *handle) {
+    return 0;
+}
+
+int theme_loader_destroy(theme_loader_h handle) {
+    return 0;
+}
+
+theme_loader_event_h theme_loader_add_event(theme_loader_h handle, theme_loader_loaded_cb callback, void *data) {
+    return nullptr;
+}
+
+int theme_loader_remove_event(theme_loader_h handle, theme_loader_event_h event_handle) {
+    return 0;
+}
+
+int theme_loader_load_current(theme_loader_h handle) {
+    return 0;
+}
+
+int theme_loader_load(theme_loader_h handle, const char *id) {
+    return 0;
+}
+
+int theme_loader_query_id(theme_loader_h handle, char ***ids, int *count) {
+    return 0;
+}
\ No newline at end of file
index 372228d..ad23957 100644 (file)
 #ifndef __TIZEN_THEME_MANAGER_THEME_LOADER_H__
 #define __TIZEN_THEME_MANAGER_THEME_LOADER_H__
 
+#include "theme.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+typedef int (*theme_loader_loaded_cb) (theme_h handle, void *data);
+
+typedef void *theme_loader_h;
+
+typedef void *theme_loader_event_h;
+
+int theme_loader_create(theme_loader_h *handle);
+
+int theme_loader_destroy(theme_loader_h handle);
+
+theme_loader_event_h theme_loader_add_event(theme_loader_h handle, theme_loader_loaded_cb callback, void *data);
+
+int theme_loader_remove_event(theme_loader_h handle, theme_loader_event_h event_handle);
+
+int theme_loader_load_current(theme_loader_h handle);
+
+int theme_loader_load(theme_loader_h handle, const char *id);
+
+int theme_loader_query_id(theme_loader_h handle, char ***ids, int *count);
 
 #ifdef __cplusplus
 }