< prev index next >

test/jdk/java/foreign/libSafeAccess.c

Print this page

19  *  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  *  or visit www.oracle.com if you need additional information or have any
21  *  questions.
22  *
23  */
24 
25 #ifdef _WIN64
26 #define EXPORT __declspec(dllexport)
27 #else
28 #define EXPORT
29 #endif
30 
31 struct Point {
32     int x;
33     int y;
34 };
35 
36 EXPORT void struct_func(struct Point p) { }
37 
38 EXPORT void addr_func(struct Point* p) { }





19  *  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  *  or visit www.oracle.com if you need additional information or have any
21  *  questions.
22  *
23  */
24 
25 #ifdef _WIN64
26 #define EXPORT __declspec(dllexport)
27 #else
28 #define EXPORT
29 #endif
30 
31 struct Point {
32     int x;
33     int y;
34 };
35 
36 EXPORT void struct_func(struct Point p) { }
37 
38 EXPORT void addr_func(struct Point* p) { }
39 
40 EXPORT void addr_func_cb(void* p, void (*callback)()) {
41    callback();
42 }
< prev index next >