4 * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
7 * DoHyung Hong <don.hong@samsung.com>
8 * SeokYeon Hwang <syeon.hwang@samsung.com>
9 * Hyunjun Son <hj79.son@samsung.com>
10 * SangJin Kim <sangjin3.kim@samsung.com>
11 * MunKyu Im <munkyu.im@samsung.com>
12 * KiTae Kim <kt920.kim@samsung.com>
13 * JinHyung Jo <jinhyung.jo@samsung.com>
14 * SungMin Ha <sungmin82.ha@samsung.com>
15 * JiHye Kim <jihye1128.kim@samsung.com>
16 * GiWoong Kim <giwoong.kim@samsung.com>
17 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
18 * DongKyun Yun <dk77.yun@samsung.com>
20 * This program is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU General Public License
22 * as published by the Free Software Foundation; either version 2
23 * of the License, or (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41 * @brief - header of file these are config struecture and defines in emulator
44 #ifndef __EMULATOR_H__
45 #define __EMULATOR_H__
47 #define ISE_TOOLKIT_NUM 5
49 #include <sys/types.h>
65 #include <gdk/gdkkeysyms.h>
69 #include <glib/gstdio.h>
74 #include <glib/gthread.h>
78 typedef struct _arglist arglist;
81 #include "configuration.h"
82 #include "emulsignal.h"
87 #include "vinit_process.h"
88 #include "qemu_gtk_widget.h"
89 #include "event_handler.h"
91 void append_argvlist(arglist* al, const char *fmt, ...) __attribute((__format__(__printf__,2,3)));
94 EMUL_BOOTING = 0, //not used yet
95 EMUL_NORMAL, //not used yet
99 extern void save_emulator_state(void);
100 extern void exit_emulator(void);
101 extern gboolean update_progress_bar(GIOChannel *, GIOCondition , gpointer);
103 extern CONFIGURATION configuration; /**< configuration structure which hold system-wide information during running */
104 extern SYSINFO SYSTEMINFO;
105 extern STARTUP_OPTION startup_option; /**< command line option structure which hold some command line option information */
106 extern PHONEMODELINFO *phone_info;
108 extern GtkWidget *EventItem1;
109 extern GtkWidget *EventItem2;
111 int get_emulator_condition(void);
112 void set_emulator_condition(int state);
113 int emul_create_process(const gchar cmd[]);
114 void emul_kill_all_process(void);
115 extern int qemu_arch_is_arm(void); /* hack */
116 int device_set_rotation(int rotation);
117 int socket_init(void);
118 void exit_emulator_post_process( void );
119 int make_shdmem(void);