Lines Matching refs:stub
34 #include "stub.h"
78 * Fill-in the dispatch stub for the named function.
81 * a dispatch stub may be created created for the function. A pointer to this
125 const struct mapi_stub *stub;
132 stub = stub_find_public(funcName);
133 if (!stub)
134 stub = stub_find_dynamic(funcName, 0);
136 slot = (stub) ? stub_get_slot(stub) : -1;
140 /* use the first existing stub as the alias */
142 alias = stub;
144 function_stubs[i] = stub;
151 struct mapi_stub *stub;
156 stub = stub_find_dynamic(funcName, 1);
157 if (!stub)
160 stub_fix_dynamic(stub, alias);
162 alias = stub;
180 const struct mapi_stub *stub;
186 stub = stub_find_public(name);
190 * Make sure we don't return stub function pointers if we don't
192 if (!stub && !is_debug_marker_func(name))
194 if (!stub)
196 stub = stub_find_dynamic(name, generate);
198 return stub;
207 const struct mapi_stub *stub = _glapi_get_stub(funcName, 0);
208 return (stub) ? stub_get_slot(stub) : -1;
219 const struct mapi_stub *stub = _glapi_get_stub(funcName, 1);
220 return (stub) ? (_glapi_proc) stub_get_addr(stub) : NULL;
230 const struct mapi_stub *stub = stub_find_by_slot(offset);
231 return stub ? stub_get_name(stub) : NULL;