2 * Copyright 2013 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
20 #include <livebox-service.h>
21 #include <livebox-errno.h>
25 #define PUBLIC __attribute__((visibility("default")))
31 unsigned int last_idx;
33 //struct dlist *block_list;
36 PUBLIC const int DONE = 0x00;
37 PUBLIC const int OUTPUT_UPDATED = 0x02;
38 PUBLIC const int USE_NET = 0x04;
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;
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;
56 PUBLIC struct livebox_desc *livebox_desc_open(const char *filename, int for_pd)
61 PUBLIC int livebox_desc_close(struct livebox_desc *handle)
63 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
66 PUBLIC int livebox_desc_set_category(struct livebox_desc *handle, const char *id, const char *category)
68 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
71 PUBLIC int livebox_desc_set_size(struct livebox_desc *handle, const char *id, int w, int h)
73 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
76 PUBLIC char *livebox_util_nl2br(const char *str)
81 PUBLIC int livebox_desc_set_id(struct livebox_desc *handle, int idx, const char *id)
83 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
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)
91 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
94 PUBLIC int livebox_desc_del_block(struct livebox_desc *handle, int idx)
96 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
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)
104 PUBLIC int livebox_request_update(const char *filename)
106 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
109 PUBLIC int livebox_conf_premultiplied_alpha(void)
111 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
114 PUBLIC unsigned long livebox_pixmap_id(struct livebox_buffer *handle)
119 PUBLIC int livebox_release_buffer(struct livebox_buffer *handle)
121 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
124 PUBLIC void *livebox_ref_buffer(struct livebox_buffer *handle)
129 PUBLIC int livebox_unref_buffer(void *buffer)
131 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
134 PUBLIC int livebox_sync_buffer(struct livebox_buffer *handle)
136 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
139 PUBLIC int livebox_support_hw_buffer(struct livebox_buffer *handle)
141 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
144 PUBLIC int livebox_create_hw_buffer(struct livebox_buffer *handle)
146 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
149 PUBLIC int livebox_destroy_hw_buffer(struct livebox_buffer *handle)
151 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
154 PUBLIC void *livebox_buffer_hw_buffer(struct livebox_buffer *handle)
159 PUBLIC int livebox_buffer_pre_render(struct livebox_buffer *handle)
161 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
164 PUBLIC int livebox_buffer_post_render(struct livebox_buffer *handle)
166 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
169 PUBLIC int livebox_buffer_stride(struct livebox_buffer *handle)
171 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
174 PUBLIC int livebox_content_is_updated(const char *filename, int is_pd)
176 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
179 PUBLIC int livebox_request_close_pd(const char *pkgname, const char *id, int reason)
181 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
184 PUBLIC int livebox_freeze_scroller(const char *pkgname, const char *id)
186 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
189 PUBLIC int livebox_release_scroller(const char *pkgname, const char *id)
191 return LB_STATUS_ERROR_NOT_IMPLEMENTED;
194 PUBLIC int livebox_set_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name)
196 return LB_STATUS_ERROR_NOT_IMPLEMENTED;