aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-25 08:01:30 +0200
committerSven Gothel <[email protected]>2023-06-25 08:01:30 +0200
commit7caf66ccae2dea53b82fb6552cb9144d4146259f (patch)
tree1e957f2d6997ecea8d83196d6c483347b9d2794d
parent15ed242971142e0726e60271172266515533e1f4 (diff)
GlueGen JavaConfiguration: Add List<Integer> stringArguments(final AliasedSymbol symbol)
-rw-r--r--src/java/com/jogamp/gluegen/JavaConfiguration.java18
1 files changed, 18 insertions, 0 deletions
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 <code>Integer</code>s which are the indices of <code>const char*</code>
+ arguments that should be converted to <code>String</code>s. Returns null if there are no
+ such hints for the given function alias symbol. */
+ public List<Integer> stringArguments(final AliasedSymbol symbol) {
+ final String name = symbol.getName();
+ final Set<String> aliases = symbol.getAliasedNames();
+
+ List<Integer> 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 ) {