summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/APIspecutil.py
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-04-24 16:22:02 -0400
committerKristian Høgsberg <[email protected]>2010-04-27 19:28:11 -0400
commit003433989597771bbb4f03cf678f5771c09606fd (patch)
treedd28a3e1cd3ca7e9ec632f669d3924a0ffd546fb /src/mesa/main/APIspecutil.py
parent61d94dd207459e0c42d98c9d6eb7df5eabdfd8a4 (diff)
es: Prefix the get* functions with _es1/2 so they don't conflict
Diffstat (limited to 'src/mesa/main/APIspecutil.py')
-rw-r--r--src/mesa/main/APIspecutil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/APIspecutil.py b/src/mesa/main/APIspecutil.py
index 27a8fe8a6d4..9e604bb84b3 100644
--- a/src/mesa/main/APIspecutil.py
+++ b/src/mesa/main/APIspecutil.py
@@ -222,6 +222,13 @@ def Parameters(funcname):
return params
+def FunctionPrefix(funcname):
+ """Return function specific prefix."""
+ func = __functions[funcname]
+
+ return func.prefix
+
+
def FindParamIndex(params, paramname):
"""Find the index of a named parameter."""
for i in xrange(len(params)):