From 7caf66ccae2dea53b82fb6552cb9144d4146259f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 25 Jun 2023 08:01:30 +0200 Subject: GlueGen JavaConfiguration: Add List stringArguments(final AliasedSymbol symbol) --- src/java/com/jogamp/gluegen/JavaConfiguration.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') diff --git a/src/java/com/jogamp/gluegen/JavaConfiguration.java b/src/java/com/jogamp/gluegen/JavaConfiguration.java index 02c7952..c111e0c 100644 --- a/src/java/com/jogamp/gluegen/JavaConfiguration.java +++ b/src/java/com/jogamp/gluegen/JavaConfiguration.java @@ -594,6 +594,24 @@ public class JavaConfiguration { return argumentsAreString.get(functionName); } + /** Returns a list of Integers which are the indices of const char* + arguments that should be converted to Strings. Returns null if there are no + such hints for the given function alias symbol. */ + public List stringArguments(final AliasedSymbol symbol) { + final String name = symbol.getName(); + final Set aliases = symbol.getAliasedNames(); + + List res = argumentsAreString.get(name); + if( null == res ) { + res = oneInMap(argumentsAreString, aliases); + if( null == res ) { + return null; + } + } + LOG.log(INFO, getASTLocusTag(symbol), "ArgumentsAreString: {0} -> {1}", symbol, res); + return res; + } + public boolean isForceUsingNIOOnly4All() { return forceUseNIOOnly4All; } public void addUseNIOOnly(final String fname ) { -- cgit v1.2.3