Add option to execute unittest in building package
[platform/core/uifw/capi-ui-sticker.git] / server / stickerd_dbus.h
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 #ifndef __TIZEN_UIX_STICKERD_DBUS_H__
18 #define __TIZEN_UIX_STICKERD_DBUS_H__
19
20 #include <gio/gio.h>
21 #include <stdlib.h>
22 #include "sticker_defs.h"
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 typedef struct monitoring_info {
29     int watcher_id;
30     char *bus_name;
31 } monitoring_info_s;
32
33 int stickerd_server_register(GVariant *parameters, GVariant **reply_body, const gchar *sender, GBusNameAppearedCallback name_appeared_handler,
34     GBusNameVanishedCallback name_vanished_handler, GHashTable **monitoring_hash, GList **consumer_list);
35 int stickerd_server_unregister(GVariant *parameters, GVariant **reply_body, const gchar *sender, GHashTable **monitoring_hash, GList **consumer_list);
36 int stickerd_server_register_dbus_interface(char *introspection_xml, GDBusInterfaceVTable interface_vtable);
37 int delete_monitoring_list(GHashTable **monitoring_hash, const char *sender, int monitoring_id);
38 int stickerd_send_dbus_message(GVariant *body, const char *dest, char *cmd, CLIENT_LIB lib);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif /* __TIZEN_UIX_STICKERD_DBUS_H__ */