diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-12-24 13:49:01 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-12-24 17:28:52 +0800 |
commit | 897bff67734ec9ab213191386cdf09ddd051aebb (patch) | |
tree | c2ab54441b42333b8e501158317f05698607444f /src/mapi/mapi/mapi.c | |
parent | 0c205484bfe3de23c370deeba43dff7939179b5a (diff) |
mapi: Make struct mapi_stub opaque.
Add accessors for struct mapi_stub and make it opaque.
Diffstat (limited to 'src/mapi/mapi/mapi.c')
-rw-r--r-- | src/mapi/mapi/mapi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mapi/mapi/mapi.c b/src/mapi/mapi/mapi.c index 5476d37fdc..b471c40b14 100644 --- a/src/mapi/mapi/mapi.c +++ b/src/mapi/mapi/mapi.c @@ -132,7 +132,7 @@ mapi_get_proc_address(const char *name) if (!stub) stub = stub_find_dynamic(name, 0); - return (stub) ? (mapi_proc) stub->addr : NULL; + return (stub) ? (mapi_proc) stub_get_addr(stub) : NULL; } /** @@ -172,11 +172,12 @@ mapi_table_fill(struct mapi_table *tbl, const mapi_proc *procs) for (i = 0; i < mapi_num_stubs; i++) { const struct mapi_stub *stub = mapi_stub_map[i]; + int slot = stub_get_slot(stub); mapi_func func = (mapi_func) procs[i]; if (!func) - func = table_get_func(noop, stub); - table_set_func(tbl, stub, func); + func = table_get_func(noop, slot); + table_set_func(tbl, slot, func); } } |