Lines Matching refs:stub
34 #include "stub.h"
82 * Fill-in the dispatch stub for the named function.
85 * a dispatch stub may be created created for the function. A pointer to this
129 const struct mapi_stub *stub;
136 stub = stub_find_public(funcName);
137 if (!stub)
138 stub = stub_find_dynamic(funcName, 0);
140 slot = (stub) ? stub_get_slot(stub) : -1;
144 /* use the first existing stub as the alias */
146 alias = stub;
148 function_stubs[i] = stub;
155 struct mapi_stub *stub;
160 stub = stub_find_dynamic(funcName, 1);
161 if (!stub)
164 stub_fix_dynamic(stub, alias);
166 alias = stub;
175 const struct mapi_stub *stub;
186 stub = stub_find_public(name);
187 if (!stub)
188 stub = stub_find_dynamic(name, generate);
190 return stub;
199 const struct mapi_stub *stub = _glapi_get_stub(funcName, 0);
200 return (stub) ? stub_get_slot(stub) : -1;
211 const struct mapi_stub *stub = _glapi_get_stub(funcName, 1);
212 return (stub) ? (_glapi_proc) stub_get_addr(stub) : NULL;
222 const struct mapi_stub *stub = stub_find_by_slot(offset);
223 return stub ? stub_get_name(stub) : NULL;