Update License
[platform/framework/web/livebox-cpp.git] / include / c-abi.h
1 /*
2  * Copyright 2013  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 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 extern int livebox_initialize(const char *pkgname);
21 extern int livebox_finalize(const char *pkgname);
22
23 extern int livebox_create(const char *pkgname, const char *filename, const char *content, const char *cluster, const char *category);
24 extern int livebox_destroy(const char *pkgname, const char *filename);
25 extern int livebox_need_to_update(const char *pkgname, const char *filename);
26 extern int livebox_need_to_destroy(const char *pkgname, const char *filename);
27 extern int livebox_update_content(const char *pkgname, const char *filename);
28
29 /*!
30  * \param[in] event "clicked" only
31  */
32 extern int livebox_clicked(const char *pkgname, const char *filename, const char *event, double timestamp, double x, double y);
33
34 /*!
35  * if "source" == "filename", emission could be "pd,show", "pd,hide", "lb,show", "lb,hide".
36  */
37 extern int livebox_content_event(const char *pkgname, const char *filename, const char *emission, const char *source, struct event_info *event_info);
38 extern int livebox_resize(const char *pkgname, const char *filename, int type);
39 extern int livebox_change_group(const char *pkgname, const char *filename, const char *cluster, const char *category);
40 extern int livebox_get_info(const char *pkgname, const char *filename, int *w, int *h, double *priority, char **content, char **title);
41 extern int livebox_need_to_create(const char *pkgname, const char *cluster, const char *category);
42 extern char *livebox_pinup(const char *pkgname, const char *filename, int pinup);
43 extern int livebox_is_pinned_up(const char *pkgname, const char *filename);
44 extern int livebox_system_event(const char *pkgname, const char *filename, int event);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 /* End of a file */