Add widget app restart logic
[platform/core/appfw/appcore-widget.git] / include / widget_app_internal.h
1 /*
2  * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__
18 #define __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__
19
20 #include <widget_app.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * For in-house applications
28  *
29  */
30
31 typedef struct {
32         struct __pointer {
33                 double x;
34                 double y;
35                 int down;
36         } pointer;
37
38         struct __part {
39                 double sx;
40                 double sy;
41                 double ex;
42                 double ey;
43         } part;
44
45 } widget_obj_event_info_s;
46
47 typedef int (*widget_instance_text_signal_cb)(widget_context_h context,
48                 const char *signal_name, const char *source,
49                 widget_obj_event_info_s *info, void *user_data);
50
51 typedef struct _widget_obj_private_ops {
52         widget_instance_text_signal_cb text_signal;
53 } widget_obj_private_ops_s;
54
55 typedef struct _widget_class_factory_full widget_class_factory_full_s;
56 typedef const widget_class_factory_full_s *(*widget_class_factory_override_text_signal)(widget_instance_text_signal_cb op);
57 typedef widget_class_h (*_widget_class_factory_operation_make)(widget_instance_lifecycle_callback_s callback);
58
59 struct _widget_class_factory_full {
60         widget_class_factory_override_text_signal override_text_signal;
61 };
62
63 const widget_class_factory_full_s *widget_app_get_class_factory(void);
64 int widget_app_restart();
65
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif /* __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__ */
72