diff options
author | Sven Gothel <[email protected]> | 2008-06-21 02:10:30 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-06-21 02:10:30 +0000 |
commit | cbc45e816f4ee81031bffce19a99550681462a24 (patch) | |
tree | 8935719f48ae3be092e574a82880020096b254e7 /make/stub_includes/jni/win32 | |
parent | 62d25e3f0effc404ff6229e563756f11178eaf79 (diff) |
Adding JNI JAWT stub_includes for all platforms
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1664 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/stub_includes/jni/win32')
-rwxr-xr-x | make/stub_includes/jni/win32/jawt_md.h | 41 | ||||
-rwxr-xr-x | make/stub_includes/jni/win32/jni_md.h | 19 |
2 files changed, 60 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 100755 index 000000000..ebfc66afe --- /dev/null +++ b/make/stub_includes/jni/win32/jawt_md.h @@ -0,0 +1,41 @@ +/* + * @(#)jawt_md.h 1.8 05/11/17 + * + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + */ + +#ifndef _JAVASOFT_JAWT_MD_H_ +#define _JAVASOFT_JAWT_MD_H_ + +#include <windows.h> +#include "jawt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Win32-specific declarations for AWT native interface. + * See notes in jawt.h for an example of use. + */ +typedef struct jawt_Win32DrawingSurfaceInfo { + /* Native window, DDB, or DIB handle */ + union { + HWND hwnd; + HBITMAP hbitmap; + void* pbits; + }; + /* + * This HDC should always be used instead of the HDC returned from + * BeginPaint() or any calls to GetDC(). + */ + 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 100755 index 000000000..9f0cfa463 --- /dev/null +++ b/make/stub_includes/jni/win32/jni_md.h @@ -0,0 +1,19 @@ +/* + * @(#)jni_md.h 1.15 05/11/17 + * + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + */ + +#ifndef _JAVASOFT_JNI_MD_H_ +#define _JAVASOFT_JNI_MD_H_ + +#define JNIEXPORT __declspec(dllexport) +#define JNIIMPORT __declspec(dllimport) +#define JNICALL __stdcall + +typedef long jint; +typedef __int64 jlong; +typedef signed char jbyte; + +#endif /* !_JAVASOFT_JNI_MD_H_ */ |