Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/java/lang/java_props.h
38829 views
/*1* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _JAVA_PROPS_H26#define _JAVA_PROPS_H2728#include <jni_util.h>2930/* The preferred native type for storing text on the current OS */31#ifdef WIN3232#include <tchar.h>33typedef WCHAR nchar;34#else35typedef char nchar;36#endif3738typedef struct {39char *os_name;40char *os_version;41char *os_arch;4243#ifdef JDK_ARCH_ABI_PROP_NAME44char *sun_arch_abi;45#endif4647nchar *tmp_dir;48nchar *font_dir;49nchar *user_dir;5051char *file_separator;52char *path_separator;53char *line_separator;5455nchar *user_name;56nchar *user_home;5758char *language;59char *format_language;60char *display_language;61char *script;62char *format_script;63char *display_script;64char *country;65char *format_country;66char *display_country;67char *variant;68char *format_variant;69char *display_variant;70char *encoding;71char *sun_jnu_encoding;72char *sun_stdout_encoding;73char *sun_stderr_encoding;74char *timezone;7576char *printerJob;77char *graphics_env;78char *awt_toolkit;7980char *unicode_encoding; /* The default endianness of unicode81i.e. UnicodeBig or UnicodeLittle */8283const char *cpu_isalist; /* list of supported instruction sets */8485char *cpu_endian; /* endianness of platform */8687char *data_model; /* 32 or 64 bit data model */8889char *patch_level; /* patches/service packs installed */9091char *desktop; /* Desktop name. */9293#ifdef MACOSX94// These are for proxy-related information.95// Note that if these platform-specific extensions get out of hand we should make a new96// structure for them and #include it here.97int httpProxyEnabled;98char *httpHost;99char *httpPort;100101int httpsProxyEnabled;102char *httpsHost;103char *httpsPort;104105int ftpProxyEnabled;106char *ftpHost;107char *ftpPort;108109int socksProxyEnabled;110char *socksHost;111char *socksPort;112113int gopherProxyEnabled;114char *gopherHost;115char *gopherPort;116117char *exceptionList;118119char *awt_headless; /* java.awt.headless setting, if NULL (default) will not be set */120#endif121122} java_props_t;123124java_props_t *GetJavaProperties(JNIEnv *env);125jstring GetStringPlatform(JNIEnv *env, nchar* str);126127#endif /* _JAVA_PROPS_H */128129130