summaryrefslogtreecommitdiffstats
path: root/make/config/nativewindow/drm-gbm-lib.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-09 20:31:17 +0200
committerSven Gothel <[email protected]>2023-06-16 02:43:11 +0200
commit4267837c591c9c205ff5206afaf38bba8c4215ac (patch)
tree73db7e31ced10f3b793fadc9a76bb3d682e0fda4 /make/config/nativewindow/drm-gbm-lib.cfg
parent6fa48e0595d6b607195eee53c0b985a8cddfa7bb (diff)
Adopt to GlueGen commit 952e0c1f83c9e0583a97d39988a6ba1428911c8c
To limit growing code due to GlueGen's more capable new `Struct` emitter (more supported setter), `Struct` with intended read-only access have been marked `ImmutableAccess` in their GlueGen config file. Produced code with above setting compared with pre-GlueGen change is reduced while also having dropped all of the JNI calls retrieving `Struct` values. Only calls to function-pointer produced JNI methods, of course.
Diffstat (limited to 'make/config/nativewindow/drm-gbm-lib.cfg')
-rw-r--r--make/config/nativewindow/drm-gbm-lib.cfg18
1 files changed, 15 insertions, 3 deletions
diff --git a/make/config/nativewindow/drm-gbm-lib.cfg b/make/config/nativewindow/drm-gbm-lib.cfg
index ad1311ce1..43bbdc8e3 100644
--- a/make/config/nativewindow/drm-gbm-lib.cfg
+++ b/make/config/nativewindow/drm-gbm-lib.cfg
@@ -28,15 +28,27 @@ ArgumentIsString drmCheckModesettingSupported 0
# ReturnsString XDisplayString
# ReturnValueCapacity XRenderFindVisualFormat sizeof(XRenderPictFormat)
-ReturnedArrayLength drmModeRes.connectors getCount_connectors()
-ReturnedArrayLength drmModeRes.crtcs getCount_crtcs()
-ReturnedArrayLength drmModeRes.encoders getCount_encoders()
+ImmutableAccess drmModeConnector
ReturnedArrayLength drmModeConnector.modes getCount_modes()
ReturnedArrayLength drmModeConnector.props getCount_props()
ReturnedArrayLength drmModeConnector.prop_values getCount_props()
ReturnedArrayLength drmModeConnector.encoders getCount_encoders()
+
+ImmutableAccess drmModeCrtc
+
+ImmutableAccess drmModeEncoder
+
+ImmutableAccess drmModeFB
+
+ImmutableAccess drmModeModeInfo
ReturnsString drmModeModeInfo.name
+ImmutableAccess drmModeRes
+ReturnedArrayLength drmModeRes.connectors getCount_connectors()
+ReturnedArrayLength drmModeRes.crtcs getCount_crtcs()
+ReturnedArrayLength drmModeRes.encoders getCount_encoders()
+
+
IgnoreNot ^(drm|DRM_|gbm_|GBM_).+
Ignore drmHandleEvent