s/uc_hook_h/uchook/g

This commit is contained in:
Jonathon Reinhart
2015-09-03 22:39:23 -04:00
parent 99e34d212a
commit 5f32e2c1ae
20 changed files with 38 additions and 38 deletions

View File

@ -8,7 +8,7 @@
size_t hook_add(struct uc_struct *uc, int type, uint64_t begin, uint64_t end, void *callback, void *user_data);
// return 0 on success, -1 on failure
uc_err hook_del(struct uc_struct *uc, uc_hook_h hh);
uc_err hook_del(struct uc_struct *uc, uchook hh);
// return NULL on failure
struct hook_struct *hook_find(struct uc_struct *uc, int type, uint64_t address);

View File

@ -22,7 +22,7 @@ extern "C" {
struct uc_struct;
typedef struct uc_struct ucengine;
typedef size_t uc_hook_h;
typedef size_t uchook;
#include "m68k.h"
#include "x86.h"
@ -375,7 +375,7 @@ uc_err uc_emu_stop(ucengine *uc);
for detailed error).
*/
UNICORN_EXPORT
uc_err uc_hook_add(ucengine *uc, uc_hook_h *hh, uc_hook_t type, void *callback, void *user_data, ...);
uc_err uc_hook_add(ucengine *uc, uchook *hh, uc_hook_t type, void *callback, void *user_data, ...);
/*
Unregister (remove) a hook callback.
@ -390,7 +390,7 @@ uc_err uc_hook_add(ucengine *uc, uc_hook_h *hh, uc_hook_t type, void *callback,
for detailed error).
*/
UNICORN_EXPORT
uc_err uc_hook_del(ucengine *uc, uc_hook_h hh);
uc_err uc_hook_del(ucengine *uc, uchook hh);
typedef enum uc_prot {
UC_PROT_NONE = 0,