QEMU_ARCH_ALL)
STEXI
@item -max-touch-point @var{max_count}
+@findex -max-touch-point
Use @var{max_count} as Integer
ETEXI
+DEF("disable-skin", 0, QEMU_OPTION_disable_skin, \
+ "-disable-skin\n"
+ " do not start with java skin process\n",
+ QEMU_ARCH_ALL)
+STEXI
+@item -disable-skin
+@findex -disable-skin
+ETEXI
+
HXCOMM This is the last statement. Insert new options before this line!
STEXI
@end table
static EmulatorConfigInfo _emul_info;
static EmulatorConfigState _emul_state;
+/* start_skin_client or not ? */
+void set_emul_skin_enable(int enable)
+{
+ _emul_info.skin_enable = enable;
+}
+
+int get_emul_skin_enable(void)
+{
+ return _emul_info.skin_enable;
+}
/* current emulator condition */
int get_emulator_condition(void)
HARD_KEY_VOL_DOWN = 114,
};
+/* keep it consistent with java definition */
enum {
MOUSE_DOWN = 1,
MOUSE_UP = 2,
MOUSE_DRAG = 3,
};
+/* keep it consistent with java definition */
enum {
KEY_PRESSED = 1,
KEY_RELEASED = 2,
};
-enum {
- HOST_CAPSLOCK_KEY = 1,
- HOST_NUMLOCK_KEY = 2,
-};
-
+/* keep it consistent with java definition */
enum {
ROTATION_PORTRAIT = 0,
ROTATION_LANDSCAPE = 1,
ROTATION_REVERSE_LANDSCAPE = 3,
};
+enum {
+ HOST_CAPSLOCK_KEY = 1,
+ HOST_NUMLOCK_KEY = 2,
+};
+
typedef struct EmulatorConfigInfo {
- char emulator_name[256]; //TODO:
+ int skin_enable;
int lcd_size_w;
int lcd_size_h;
- int guest_dpi; //not used yet
int sdl_bpp;
int max_touch_point;
//TODO:
/* setter */
+void set_emul_skin_enable(int enable);
void set_emul_lcd_size(int width, int height);
void set_emul_win_scale(double scale);
void set_emul_sdl_bpp(int bpp);
void set_emul_num_lock_state(int state);
/* getter */
+int get_emul_skin_enable(void);
int get_emul_lcd_width(void);
int get_emul_lcd_height(void);
double get_emul_win_scale(void);
INFO("construct main window\n");
start_skin_server( skin_argc, skin_argv, qemu_argc, qemu_argv );
-#if 1
- if ( 0 > start_skin_client(skin_argc, skin_argv) ) {
- exit( -1 );
+
+ if (get_emul_skin_enable() == 1) { //check for debugging, etc..
+ if ( 0 > start_skin_client(skin_argc, skin_argv) ) {
+ exit( -1 );
+ }
}
-#endif
set_emul_caps_lock_state(0);
set_emul_num_lock_state(0);
#ifdef CONFIG_MARU
#define VIRTIOGL_DEV_NAME "virtio-gl-pci"
extern int tizen_base_port;
+int skin_disabled = 0;
#endif
static const char *data_dir;
int cnt = atoi(optarg);
fprintf(stderr, "maxTouchPoint:%d\n", cnt);
set_emul_max_touch_point(cnt);
+ break;
}
+ case QEMU_OPTION_disable_skin:
+ skin_disabled = 1;
break;
#endif
default:
#if defined(CONFIG_MARU)
/* use tizen qemu sdl */
maruskin_display_init(ds);
+
+ if (skin_disabled == 1) {
+ //do not start skin client process
+ set_emul_skin_enable(0);
+ } else {
+ set_emul_skin_enable(1);
+ }
#else
sdl_display_init(ds, full_screen, no_frame);
#endif