Change length of copy when snprintf is called
[platform/core/api/gesture.git] / engine / gesture_engine_dbus.h
1 /*
2  * Copyright (c) 2020 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_GESTURE_DBUS_H__
18 #define __TIZEN_UIX_GESTURE_DBUS_H__
19
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <glib.h>
23 #include <gio/gio.h>
24 #include <dbus/dbus.h>
25 #include "gesture_defs.h"
26 #include "gesture_data_info.h"
27 #include "gesture_engine.h"
28 #include "gesture_engine_main.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34
35 int gesture_engine_dbus_init(GDBusConnection **gdbus_connection, guint *server_watcher_id, int *monitor_id, int *server_monitor_id, CLIENT_LIB lib, void *data);
36 int gesture_engine_dbus_shutdown(GDBusConnection *gdbus_connection, int *server_monitor_id, int *monitor_id);
37
38 /* send to daemon */
39 int gesture_engine_dbus_main_start(GDBusConnection *gdbus_connection, gesture_engine_request_callback_s *callback);
40 int gesture_engine_dbus_send_result(GDBusConnection *gdbus_connection, gesture_engine_result_event_e event, hand_gesture_type_e gesture_type, hand_gesture_data_h result, void* time_info, void* user_data);
41 int gesture_engine_dbus_send_error(GDBusConnection *gdbus_connection,  gesture_engine_error_e error, const char* msg);
42 int gesture_engine_dbus_send_motion_status(GDBusConnection *gdbus_connection, gesture_engine_motion_status_e status, void* user_data);
43 int gesture_engine_dbus_send_engine_get_info(GDBusConnection *gdbus_connection, char* engine_app_id, char* engine_name);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif  /* __TIZEN_UIX_GESTURE_DBUS_H__ */