summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/gluegen
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-07 08:28:03 +0100
committerSven Gothel <[email protected]>2015-03-07 08:28:03 +0100
commitb86c042c864db0d8061b999fadc87dd9f3b45824 (patch)
treef7614f22693d50038072419bbf33dd9795af8107 /src/junit/com/jogamp/gluegen
parenteca019cdea4017227e951d8a9eb30cb34fca4a07 (diff)
Bug 1134 - Handle Opaque fields in structs; Print struct field name in apidoc of getter/setter
Diffstat (limited to 'src/junit/com/jogamp/gluegen')
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/test1-common.cfg2
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/test1.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1-common.cfg b/src/junit/com/jogamp/gluegen/test/junit/generation/test1-common.cfg
index 7210940..59dc083 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1-common.cfg
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1-common.cfg
@@ -36,6 +36,8 @@ Opaque long XID
# For 'struct _AnonBlob2*', we need to drop 'struct'
Opaque long _AnonBlob2*
+Opaque long ShortBlob.Cool
+
CustomCCode #include "test1.h"
Opaque long TK_Context
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h
index 8bc7208..a8c125d 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h
@@ -59,9 +59,12 @@ typedef enum { MI=1, MU, MO } Momo;
// typedef enum { MI=1, MU=3, MO } Momo; // Duplicate w/ diff value ERROR
// typedef enum { MI=1, MU, MO, MERR } Momo; // Duplicate w/ diff value ERROR
+struct _Crazy;
+
typedef struct _ShortBlob {
uint8_t b1;
uint8_t b2;
+ struct _Crazy * Cool; // Opaque field!
} ShortBlob, ShortBlob2, *LPShortBlob1; // Aliased to 'ShortBlob'
typedef ShortBlob2 * LPShortBlob2; // Aliased to 'ShortBlob'
typedef ShortBlob * LPShortBlob3; // Aliased to 'ShortBlob'