Creating old package too
[apps/native/widget/widget.git] / livebox / src / livebox.c
1 /*
2  * Copyright 2013  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 #include <stdio.h>
18 #include <errno.h>
19
20 #include <livebox-service.h>
21 #include <livebox-errno.h>
22
23 #include "livebox.h"
24
25 #define PUBLIC __attribute__((visibility("default")))
26
27 struct livebox_desc {
28         FILE *fp;
29         int for_pd;
30
31         unsigned int last_idx;
32
33         //struct dlist *block_list;
34 };
35
36 PUBLIC const int DONE = 0x00;
37 PUBLIC const int OUTPUT_UPDATED = 0x02;
38 PUBLIC const int USE_NET = 0x04;
39
40 PUBLIC const int NEED_TO_SCHEDULE = 0x01;
41 PUBLIC const int NEED_TO_CREATE = 0x01;
42 PUBLIC const int NEED_TO_DESTROY = 0x01;
43 PUBLIC const int NEED_TO_UPDATE = 0x01;
44 PUBLIC const int FORCE_TO_SCHEDULE = 0x08;
45
46 PUBLIC const int LB_SYS_EVENT_FONT_CHANGED = 0x01;
47 PUBLIC const int LB_SYS_EVENT_LANG_CHANGED = 0x02;
48 PUBLIC const int LB_SYS_EVENT_TIME_CHANGED = 0x04;
49 PUBLIC const int LB_SYS_EVENT_REGION_CHANGED = 0x08;
50 PUBLIC const int LB_SYS_EVENT_TTS_CHANGED = 0x10;
51 PUBLIC const int LB_SYS_EVENT_PAUSED = 0x0100;
52 PUBLIC const int LB_SYS_EVENT_RESUMED = 0x0200;
53 PUBLIC const int LB_SYS_EVENT_MMC_STATUS_CHANGED = 0x0400;
54 PUBLIC const int LB_SYS_EVENT_DELETED = 0x0800;
55
56 PUBLIC struct livebox_desc *livebox_desc_open(const char *filename, int for_pd)
57 {
58     return NULL;
59 }
60
61 PUBLIC int livebox_desc_close(struct livebox_desc *handle)
62 {
63     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
64 }
65
66 PUBLIC int livebox_desc_set_category(struct livebox_desc *handle, const char *id, const char *category)
67 {
68     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
69 }
70
71 PUBLIC int livebox_desc_set_size(struct livebox_desc *handle, const char *id, int w, int h)
72 {
73     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
74 }
75
76 PUBLIC char *livebox_util_nl2br(const char *str)
77 {
78     return NULL;
79 }
80
81 PUBLIC int livebox_desc_set_id(struct livebox_desc *handle, int idx, const char *id)
82 {
83     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
84 }
85
86 /*!
87  * \return idx
88  */
89 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)
90 {
91     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
92 }
93
94 PUBLIC int livebox_desc_del_block(struct livebox_desc *handle, int idx)
95 {
96     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
97 }
98
99 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)
100 {
101     return NULL;
102 }
103
104 PUBLIC int livebox_request_update(const char *filename)
105 {
106     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
107 }
108
109 PUBLIC int livebox_conf_premultiplied_alpha(void)
110 {
111     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
112 }
113
114 PUBLIC unsigned long livebox_pixmap_id(struct livebox_buffer *handle)
115 {
116     return 0lu;
117 }
118
119 PUBLIC int livebox_release_buffer(struct livebox_buffer *handle)
120 {
121     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
122 }
123
124 PUBLIC void *livebox_ref_buffer(struct livebox_buffer *handle)
125 {
126     return NULL;
127 }
128
129 PUBLIC int livebox_unref_buffer(void *buffer)
130 {
131     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
132 }
133
134 PUBLIC int livebox_sync_buffer(struct livebox_buffer *handle)
135 {
136     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
137 }
138
139 PUBLIC int livebox_support_hw_buffer(struct livebox_buffer *handle)
140 {
141     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
142 }
143
144 PUBLIC int livebox_create_hw_buffer(struct livebox_buffer *handle)
145 {
146     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
147 }
148
149 PUBLIC int livebox_destroy_hw_buffer(struct livebox_buffer *handle)
150 {
151     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
152 }
153
154 PUBLIC void *livebox_buffer_hw_buffer(struct livebox_buffer *handle)
155 {
156     return NULL;
157 }
158
159 PUBLIC int livebox_buffer_pre_render(struct livebox_buffer *handle)
160 {
161     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
162 }
163
164 PUBLIC int livebox_buffer_post_render(struct livebox_buffer *handle)
165 {
166     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
167 }
168
169 PUBLIC int livebox_buffer_stride(struct livebox_buffer *handle)
170 {
171     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
172 }
173
174 PUBLIC int livebox_content_is_updated(const char *filename, int is_pd)
175 {
176     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
177 }
178
179 PUBLIC int livebox_request_close_pd(const char *pkgname, const char *id, int reason)
180 {
181     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
182 }
183
184 PUBLIC int livebox_freeze_scroller(const char *pkgname, const char *id)
185 {
186     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
187 }
188
189 PUBLIC int livebox_release_scroller(const char *pkgname, const char *id)
190 {
191     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
192 }
193
194 PUBLIC int livebox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name)
195 {
196     return LB_STATUS_ERROR_NOT_IMPLEMENTED;
197 }
198
199 /* End of a file */