summaryrefslogtreecommitdiff
path: root/src/mapi/mapi/entry.h
AgeCommit message (Collapse)Author
2010-12-24mapi: Move mapi_func typedef to entry.h.Chia-I Wu
Make it clear that entry.h does not depend on stub.h.
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-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.