1 /*
   2  * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef _JAVA_PROPS_H
  27 #define _JAVA_PROPS_H
  28 
  29 #include <jni_util.h>
  30 
  31 typedef struct {
  32     char *os_name;
  33     char *os_version;
  34     char *os_arch;
  35 
  36     char *tmp_dir;
  37     char *font_dir;
  38     char *user_dir;
  39 
  40     char *file_separator;
  41     char *path_separator;
  42     char *line_separator;
  43 
  44     char *user_name;
  45     char *user_home;
  46 
  47     char *language;
  48     char *country;
  49     char *variant;
  50     char *encoding;
  51     char *sun_jnu_encoding;
  52     char *timezone;
  53 
  54     char *printerJob;
  55     char *graphics_env;
  56     char *awt_toolkit;
  57 
  58     char *unicode_encoding;     /* The default endianness of unicode
  59                                     i.e. UnicodeBig or UnicodeLittle   */
  60 
  61     const char *cpu_isalist;    /* list of supported instruction sets */
  62 
  63     char *cpu_endian;           /* endianness of platform */
  64 
  65     char *data_model;           /* 32 or 64 bit data model */
  66 
  67     char *patch_level;          /* patches/service packs installed */
  68 
  69     char *desktop;              /* Desktop name. */
  70 
  71 } java_props_t;
  72 
  73 java_props_t *GetJavaProperties(JNIEnv *env);
  74 
  75 #endif /* _JAVA_PROPS_H */