Fixed AllPluginsLoaded activities happening before SM is loaded (r=dvander`hom).
1 #ifndef _INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_
2 #define _INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_
5 #include <KeStdTypes.h>
12 * @brief Creates a new code cache/allocator.
14 * @return New code cache allocator.
16 extern KeCodeCache *KE_CreateCodeCache();
19 * @brief Destroys a code cache allocator.
21 * @param cache Code cache object.
23 extern void KE_DestroyCodeCache(KeCodeCache *cache);
26 * @brief Allocates code memory that is readable, writable,
29 * The address returned wlil be aligned, minimally, on a 16-byte
32 * @param cache Code cache object.
33 * @param size Amount of memory needed.
34 * @return Address pointing to the memory.
36 extern void *KE_AllocCode(KeCodeCache *cache, size_t size);
39 * @brief Frees code memory.
41 * @param cache Code cache object.
42 * @param code Address of code memory.
44 extern void KE_FreeCode(KeCodeCache *cache, void *code);
47 #endif //_INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_