9c3707dc33ac5eea6e5e5b60a1407a3638cd0054
[sdk/emulator/qemu.git] / tizen / src / skin / maruskin_client.h
1 /*
2  * communicate with java skin process
3  *
4  * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  * GiWoong Kim <giwoong.kim@samsung.com>
8  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
9  * HyunJun Son
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
31 #ifndef MARUSKIN_CLIENT_H_
32 #define MARUSKIN_CLIENT_H_
33
34 #include "../maru_common.h"
35
36 #define JAVA_MAX_COMMAND_LENGTH 1024
37
38 #define JAR_SKINFILE "emulator-skin.jar"
39 #define JAVA_LIBRARY_PATH "-Djava.library.path"
40
41 #ifndef CONFIG_DARWIN
42 #define JAVA_EXEOPTION "-jar"
43 #else
44 #define JAVA_EXEOPTION "-XstartOnFirstThread -jar" // Must start the Java window on the first thread on Mac
45 #endif
46 #define JAVA_SIMPLEMODE_OPTION "simple.msg"
47
48 #ifdef CONFIG_WIN32
49 #define  MY_KEY_WOW64_64KEY 0x0100
50 int is_wow64(void);
51 int get_java_path(char**);
52 static char* JAVA_EXEFILE_PATH = 0;
53 #else
54 #define JAVA_EXEFILE_PATH "java"
55 #endif
56
57 int start_skin_client(int argc, char* argv[]);
58 int start_simple_client(char* msg);
59
60 #endif /* MARUSKIN_CLIENT_H_ */