Lines Matching refs:stub
65 const struct mapi_stub *stub = (const struct mapi_stub *) elem; in stub_compare() local
68 stub_name = &public_string_pool[(size_t) stub->name]; in stub_compare()
89 struct mapi_stub *stub; in stub_add_dynamic() local
97 stub = &dynamic_stubs[idx]; in stub_add_dynamic()
100 stub->addr = entry_generate( in stub_add_dynamic()
102 if (!stub->addr) in stub_add_dynamic()
105 stub->name = (const void *) strdup(name); in stub_add_dynamic()
107 stub->slot = -1; in stub_add_dynamic()
111 return stub; in stub_add_dynamic()
122 struct mapi_stub *stub = NULL; in stub_find_dynamic() local
133 stub = &dynamic_stubs[i]; in stub_find_dynamic()
139 if (generate && !stub) in stub_find_dynamic()
140 stub = stub_add_dynamic(name); in stub_find_dynamic()
144 return stub; in stub_find_dynamic()
162 const struct mapi_stub *stub = in stub_find_by_slot() local
164 if (stub) in stub_find_by_slot()
165 return stub; in stub_find_by_slot()
170 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias) in stub_fix_dynamic() argument
174 if (stub->slot >= 0) in stub_fix_dynamic()
182 entry_patch(stub->addr, slot); in stub_fix_dynamic()
183 stub->slot = slot; in stub_fix_dynamic()
190 stub_get_name(const struct mapi_stub *stub) in stub_get_name() argument
194 if (stub >= public_stubs && in stub_get_name()
195 stub < public_stubs + ARRAY_SIZE(public_stubs)) in stub_get_name()
196 name = &public_string_pool[(size_t) stub->name]; in stub_get_name()
198 name = (const char *) stub->name; in stub_get_name()
207 stub_get_slot(const struct mapi_stub *stub) in stub_get_slot() argument
209 return stub->slot; in stub_get_slot()
216 stub_get_addr(const struct mapi_stub *stub) in stub_get_addr() argument
218 assert(stub->addr || (unsigned int) stub->slot < MAPI_TABLE_NUM_STATIC); in stub_get_addr()
219 return (stub->addr) ? stub->addr : entry_get_public(stub->slot); in stub_get_addr()