diff options
author | Sven Gothel <[email protected]> | 2015-03-23 03:51:23 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-23 03:51:23 +0100 |
commit | 532b8df474976b474f0cf4eb2d93588ded2ad3fe (patch) | |
tree | 63d7007f5f535034364cd1726cbe667e41388775 /make/stub_includes/jni/win32 | |
parent | 030b580cf8bb7f1e91eed6e47a341eb50fc2e6be (diff) |
Import JOGL's JNI header and unify them for GlueGen and C-Compiler usage.
We had macosx JNI header and different JNI header included in JOGL
for native compilation and GlueGen runs.
This unifies the header for any use.
Diffstat (limited to 'make/stub_includes/jni/win32')
-rw-r--r-- | make/stub_includes/jni/win32/jawt_md.h | 54 | ||||
-rw-r--r-- | make/stub_includes/jni/win32/jni_md.h | 44 |
2 files changed, 98 insertions, 0 deletions
diff --git a/make/stub_includes/jni/win32/jawt_md.h b/make/stub_includes/jni/win32/jawt_md.h new file mode 100644 index 0000000..23be13c --- /dev/null +++ b/make/stub_includes/jni/win32/jawt_md.h @@ -0,0 +1,54 @@ +/* + * @(#)jawt_md.h 1.8 05/11/17 + * + * This C header file is derived from Sun Microsystem's Java SDK provided C header file + * with the following copyright notice: + * + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * This version has complex comments removed and does not contain inlined algorithms etc, if any existed. + * + * The original C header file was included to JOGL on Sat Jun 21 02:10:30 2008 + * (commit cbc45e816f4ee81031bffce19a99550681462a24) by Sun Microsystem's staff and were approved. + * + * This C header file is included due to ensure compatibility with - and invocation of the JAWT protocol. + * They are processed by GlueGen to create a Java binding for JAWT invocation only. + * + * http://ftp.resource.org/courts.gov/c/F3/387/387.F3d.522.03-5400.html (36) + * "Atari Games Corp. v. Nintendo of Am., Inc., Nos. 88-4805 & 89-0027, 1993 WL 207548, at *1 (N.D.Cal. May 18, 1993) ("Atari III") + * ("Program code that is strictly necessary to achieve current compatibility presents a merger problem, almost by definition, + * and is thus excluded from the scope of any copyright.")." + * + * http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2009:111:0016:0022:EN:PDF + * L 111/17 (10) and (15) + */ + +#ifndef _JAVASOFT_JAWT_MD_H_ +#define _JAVASOFT_JAWT_MD_H_ + +#include <windows.h> +#include "jawt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct jawt_Win32DrawingSurfaceInfo { + /** + union { + HWND hwnd; + HBITMAP hbitmap; + void* pbits; + }; */ + HWND handle; + + HDC hdc; + HPALETTE hpalette; +} JAWT_Win32DrawingSurfaceInfo; + +#ifdef __cplusplus +} +#endif + +#endif /* !_JAVASOFT_JAWT_MD_H_ */ diff --git a/make/stub_includes/jni/win32/jni_md.h b/make/stub_includes/jni/win32/jni_md.h new file mode 100644 index 0000000..10c298e --- /dev/null +++ b/make/stub_includes/jni/win32/jni_md.h @@ -0,0 +1,44 @@ +/* + * @(#)jni_md.h 1.15 05/11/17 + * + * This C header file is derived from Sun Microsystem's Java SDK provided C header file + * with the following copyright notice: + * + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * This version has complex comments removed and does not contain inlined algorithms etc, if any existed. + * + * The original C header file was included to JOGL on Sat Jun 21 02:10:30 2008 + * (commit cbc45e816f4ee81031bffce19a99550681462a24) by Sun Microsystem's staff and were approved. + * + * This C header file is included due to ensure compatibility with - and invocation of the JAWT protocol. + * They are processed by GlueGen to create a Java binding for JAWT invocation only. + * + * http://ftp.resource.org/courts.gov/c/F3/387/387.F3d.522.03-5400.html (36) + * "Atari Games Corp. v. Nintendo of Am., Inc., Nos. 88-4805 & 89-0027, 1993 WL 207548, at *1 (N.D.Cal. May 18, 1993) ("Atari III") + * ("Program code that is strictly necessary to achieve current compatibility presents a merger problem, almost by definition, + * and is thus excluded from the scope of any copyright.")." + * + * http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2009:111:0016:0022:EN:PDF + * L 111/17 (10) and (15) + */ + +#ifndef _JAVASOFT_JNI_MD_H_ +#define _JAVASOFT_JNI_MD_H_ + +#ifdef __GLUEGEN__ + #define JNIEXPORT + #define JNIIMPORT + #define JNICALL +#else /* __GLUEGEN__ */ + #define JNIEXPORT __declspec(dllexport) + #define JNIIMPORT __declspec(dllimport) + #define JNICALL __stdcall +#endif /* __GLUEGEN__ */ + +typedef int8_t jbyte; +typedef int32_t jint; +typedef int64_t jlong; + +#endif /* !_JAVASOFT_JNI_MD_H_ */ |