Change length of copy when snprintf is called
[platform/core/api/gesture.git] / client / gesture_main.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_MAIN_H__
18 #define __TIZEN_UIX_GESTURE_MAIN_H__
19
20 #include <gio/gio.h>
21 #include <dbus/dbus.h>
22 #include "gesture.h"
23
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30 struct hand_gesture_s {
31         GDBusConnection *gdbus_connection;
32         guint server_watcher_id;
33         int monitor_id;
34         int server_monitor_id;
35
36         char uid[16];
37         char smack_label[1024];
38
39         hand_gesture_recognition_cb recog_cb;
40         void* recog_user_data;
41         hand_gesture_error_cb error_cb;
42         void* error_user_data;
43 };
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif /* __TIZEN_UIX_GESTURE_MAIN_H__ */