summaryrefslogtreecommitdiff
path: root/src/mapi/mapi/stub.c
AgeCommit message (Collapse)Author
2010-12-24mapi: Add and use entry_get_public.Chia-I Wu
Given a dispatch slot, entry_get_public returns the address of the corresponding public entry point. There may be more than one of them. But since they are all equivalent, it is fine to return any one of them. With entry_get_public, the address of any public entry point can be calculated at runtime when an assembly dispatcher is used. There is no need to have a mapping table in such case. This omits the unnecessary relocations from the binary.
2010-12-24mapi: Make struct mapi_stub opaque.Chia-I Wu
Add accessors for struct mapi_stub and make it opaque.
2010-12-06mapi: Rewrite mapi_abi.py to get rid of preprocessor magic.Chia-I Wu
The preprocessor magic in mapi was nothing but obfuscation. Rewrite mapi_abi.py to generate real C code. This commit removes the hack added in 43121f20866bb89e8dac92bd92ec85a943704b7e.
2010-12-02mapi: Hack to avoid vgCreateFont being generated as vgCreateFontA.José Fonseca
Right fix is probably stop C-preprocessor abuse and stick 100% with scripted code generation.
2010-05-07mapi: Add a generic C dispatcher.Chia-I Wu
The idea is to have an API generate a header using mapi_abi.py. The API can then use the header to build a dispatcher.