sycn with master
[platform/framework/web/data-provider-slave.git] / include / lb.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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.tizenopensource.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 extern int lb_init(void);
18 extern int lb_fini(void);
19
20 extern int lb_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, double period, const char *cluster, const char *category, int *w, int *h, double *priority, int skip_need_to_create, const char *abi, char **out_content, char **out_title);
21 extern int lb_destroy(const char *pkgname, const char *id);
22
23 extern int lb_resize(const char *pkgname, const char *id, int w, int h);
24 extern int lb_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y);
25
26 extern int lb_script_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info);
27 extern int lb_change_group(const char *pkgname, const char *id, const char *cluster, const char *category);
28
29 extern int lb_update(const char *pkgname, const char *id);
30 extern int lb_update_all(const char *pkgname, const char *cluster, const char *category);
31 extern void lb_pause_all(void);
32 extern void lb_resume_all(void);
33 extern int lb_set_period(const char *pkgname, const char *id, double period);
34 extern char *lb_pinup(const char *pkgname, const char *id, int pinup);
35 extern int lb_system_event(const char *pkgname, const char *id, int event);
36 extern int lb_system_event_all(int event);
37
38 extern int lb_open_pd(const char *pkgname);
39 extern int lb_close_pd(const char *pkgname);
40
41 extern int lb_pause(const char *pkgname, const char *id);
42 extern int lb_resume(const char *pkgname, const char *id);
43
44 extern int lb_is_pinned_up(const char *pkgname, const char *id);
45
46 extern void lb_turn_secured_on(void);
47
48 /*!
49  * Exported API for each liveboxes
50  */
51 extern const char *livebox_find_pkgname(const char *filename);
52 extern int livebox_request_update_by_id(const char *filename);
53
54 /* End of a file */