Revert "Remove uc_cb_eventmem_t as it is identical to uc_cb_hookmem_t"

As pointed out by aquynh the return types are actually different. A
uc_cb_eventmem_t callback returns a bool, while uc_cb_hookmem_t has a
void return type.

This reverts commit cb2b97f26c.
This commit is contained in:
Sean Heelan
2015-09-23 12:51:47 +07:00
parent 2ef59e5727
commit dfb4a9d9ad
3 changed files with 21 additions and 11 deletions

2
uc.c
View File

@ -830,7 +830,7 @@ MemoryRegion *memory_mapping(struct uc_struct* uc, uint64_t address)
return NULL;
}
static uc_err _hook_mem_invalid(struct uc_struct* uc, uc_cb_hookmem_t callback,
static uc_err _hook_mem_invalid(struct uc_struct* uc, uc_cb_eventmem_t callback,
void *user_data, uc_hook *evh)
{
size_t i;