update source for tizen_2.1
[sdk/emulator/qemu.git] / tizen / src / mloop_event.h
1 /*
2  * mainloop_evhandle.c
3  *
4  * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  * Kitae Kim <kt920.kim@samsung.com>
8  * GiWoong Kim <giwoong.kim@samsung.com>
9  * DoHyung Hong
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24  *
25  * Contributors:
26  * - S-Core Co., Ltd
27  *
28  */
29
30 #ifndef MLOOP_EVENT_H_
31 #define MLOOP_EVENT_H_
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 void mloop_ev_init(void);
38 void mloop_ev_stop(void);
39
40 void mloop_evcmd_usbkbd(int on);
41 void mloop_evcmd_usbdisk(char *img);
42 void mloop_evcmd_hostkbd(int on);
43
44 int mloop_evcmd_get_usbkbd_status(void);
45 int mloop_evcmd_get_hostkbd_status(void);
46
47 void mloop_evcmd_set_usbkbd(void *dev);
48 void mloop_evcmd_set_usbdisk(void *dev);
49 void mloop_evcmd_set_hostkbd(void *dev);
50
51 void mloop_evcmd_raise_intr(void *irq);
52 void mloop_evcmd_lower_intr(void *irq);
53
54 void mloop_evcmd_hwkey(int event_type, int keycode);
55 void mloop_evcmd_touch(void);
56 void mloop_evcmd_keyboard(void *data);
57 void mloop_evcmd_ramdump(void);
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif /* MLOOP_EVENT_H_ */