Lines Matching refs:name
55 xmlByName = dict((f.name, f) for f in xmlFunctions)
57 for (name, eglFunc) in eglFunctionList.EGL_FUNCTIONS:
58 func = xmlByName[name]
62 # Sort the function list by name.
63 functions = sorted(functions, key=lambda f: f[0].name)
84 raise ValueError("Invalid dispatch method %r for function %r" % (result["method"], func.name))
112 text += " __EGL_DISPATCH_" + func.name + ",\n"
120 text += "{f.rt} EGLAPIENTRY {ex[prefix]}{f.name}({f.decArgs});\n".format(f=func, ex=eglFunc)
132 # First, sort the function list by name.
149 text += ' "' + func.name + '",\n'
158 text += " (__eglMustCastToProperFunctionPointerType) " + eglFunc.get("prefix", "") + func.name + ",\n"
160 text += " NULL, // " + func.name + "\n"
189 {f.rt} EGLAPIENTRY {ef[prefix]}{f.name}({f.decArgs})
191 typedef {f.rt} EGLAPIENTRY (* _pfn_{f.name})({f.decArgs});
197 text += " _pfn_{f.name} _ptr_{f.name} = (_pfn_{f.name}) ".format(f=func)
199 text += "__eglDispatchFetchByCurrent(__EGL_DISPATCH_{f.name});\n".format(f=func)
213 lookupArg = arg.name
216 raise ValueError("Can't find %s argument for function %s" % (lookupType, func.name,))
218 text += "{lookupFunc}({lookupArg}, __EGL_DISPATCH_{f.name});\n".format(
223 text += " if(_ptr_{f.name} != NULL) {{\n".format(f=func)
227 text += "_ptr_{f.name}({f.callArgs});\n".format(f=func)