2 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __APPCORE_WIDGET_PRIVATE_H__
19 #define __APPCORE_WIDGET_PRIVATE_H__
23 #include <Elementary.h>
24 #include <widget_app.h>
25 #include <app_common.h>
26 #include <widget_errno.h>
28 #define FEATURE_SHELL_APPWIDGET "http://tizen.org/feature/shell.appwidget"
30 struct _widget_class {
32 widget_instance_lifecycle_callback_s ops;
34 struct _widget_class *next;
35 struct _widget_class *prev;
38 struct _widget_context {
40 struct _widget_class *provider;
49 widget_instance_lifecycle_callback_s ops;
52 typedef struct _widget_context widget_context_s;
54 GList *_widget_app_get_contexts();
55 int _widget_app_add_context(widget_context_s *wc);
56 int _widget_app_remove_context(widget_context_s *wc);
57 int _widget_app_set_viewer_endpoint(char *viewer_endpoint);
58 char *_widget_app_get_viewer_endpoint();
59 int _widget_app_free_viewer_endpoint();
60 int _set_i18n(const char *domainname);
61 void _update_lang(void);
62 void _update_region(void);
63 int widget_app_error(widget_error_e error, const char *function,
64 const char *description);
66 #endif /* __APPCORE_WIDGET_PRIVATE_H__ */