summaryrefslogtreecommitdiff
path: root/include/c-abi.h
blob: 617459e7f9301bb25d6d6001d8c91b5f99ef56ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright 2013  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://floralicense.org
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifdef __cplusplus
extern "C" {
#endif
extern int livebox_initialize(const char *pkgname);
extern int livebox_finalize(const char *pkgname);

extern int livebox_create(const char *pkgname, const char *filename, const char *content, const char *cluster, const char *category);
extern int livebox_destroy(const char *pkgname, const char *filename);
extern int livebox_need_to_update(const char *pkgname, const char *filename);
extern int livebox_need_to_destroy(const char *pkgname, const char *filename);
extern int livebox_update_content(const char *pkgname, const char *filename);

/*!
 * \param[in] event "clicked" only
 */
extern int livebox_clicked(const char *pkgname, const char *filename, const char *event, double timestamp, double x, double y);

/*!
 * if "source" == "filename", emission could be "pd,show", "pd,hide", "lb,show", "lb,hide".
 */
extern int livebox_content_event(const char *pkgname, const char *filename, const char *emission, const char *source, struct event_info *event_info);
extern int livebox_resize(const char *pkgname, const char *filename, int type);
extern int livebox_change_group(const char *pkgname, const char *filename, const char *cluster, const char *category);
extern int livebox_get_info(const char *pkgname, const char *filename, int *w, int *h, double *priority, char **content, char **title);
extern int livebox_need_to_create(const char *pkgname, const char *cluster, const char *category);
extern char *livebox_pinup(const char *pkgname, const char *filename, int pinup);
extern int livebox_is_pinned_up(const char *pkgname, const char *filename);
extern int livebox_system_event(const char *pkgname, const char *filename, int event);

#ifdef __cplusplus
}
#endif

/* End of a file */