2 * Emulator Control Server - Device Tethering Handler
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
7 * KiTae Kim <kt920.kim@samsung.com>
8 * JiHey Kim <jihye1128.kim@samsung.com>
9 * DaiYoung Kim <daiyoung777.kim@samsung.com>
10 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 // ecs <-> ecp messages
32 #define ECS_TETHERING_MSG_CATEGORY "tethering"
34 #define ECS_TETHERING_MSG_GROUP_ECP 1
35 // #define TETHERING_MSG_GROUP_USB
36 // #define TETHERING_MSG_GROUP_WIFI
38 #define ECS_TETHERING_MSG_ACTION_CONNECT 1
39 #define ECS_TETHERING_MSG_ACTION_DISCONNECT 2
40 #define ECS_TETHERING_MSG_ACTION_CONNECTION_STATUS 3
41 #define ECS_TETHERING_MSG_ACTION_SENSOR_STATUS 4
42 #define ECS_TETHERING_MSG_ACTION_TOUCH_STATUS 5
44 void send_tethering_sensor_status_ecp(void);
45 void send_tethering_touch_status_ecp(void);
46 void send_tethering_connection_status_ecp(void);
47 void send_tethering_sensor_data(const char *data, int len);
48 void send_tethering_touch_data(int x, int y, int index, int status);