From 3d6003fcada35d91c0d865ad0f4edb1da3ed8b8d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 20 Jun 2023 20:31:02 +0200 Subject: GlueGen junit test2.h: Add an anonymous struct pointer w/ opaque long config --- src/junit/com/jogamp/gluegen/test/junit/generation/test2.cfg | 1 + src/junit/com/jogamp/gluegen/test/junit/generation/test2.h | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test2.cfg b/src/junit/com/jogamp/gluegen/test/junit/generation/test2.cfg index 4ca9ae5..7c31341 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test2.cfg +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test2.cfg @@ -20,6 +20,7 @@ ForceProcAddressGen __ALL__ # LocalProcAddressCallingConvention __ALL__ MYAPIENTRY Opaque long void* +Opaque long T2_Anonymous* EmitStruct T2_ThreadAffinity StructPackage T2_ThreadAffinity com.jogamp.gluegen.test.junit.generation diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test2.h b/src/junit/com/jogamp/gluegen/test/junit/generation/test2.h index cf0808d..0817dd9 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test2.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test2.h @@ -2,14 +2,12 @@ #include #include +typedef struct T2_Anonymous* T2_AnonPtr; + typedef struct { int32_t ApiVersion; uint64_t NetworkWork; - uint64_t StorageIo; - uint64_t WebSocketIo; - uint64_t P2PIo; - uint64_t HttpRequestIo; - uint64_t RTCIo; + T2_AnonPtr anonPtr; } T2_ThreadAffinity; typedef struct { -- cgit v1.2.3