update hook_flag_read

Conflicts:
	libr/anal/esil_stats.c
	libr/include/r_anal.h
This commit is contained in:
condret 2014-09-12 23:59:02 +02:00
parent cd49d02fbe
commit 9621db0985
2 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,7 @@
#include <r_anal.h>
static int hook_flag_read(RAnalEsil *esil, char flag, ut64 *num) {
char str[2] = {flag,0};
sdb_array_add (esil->stats, "flg.read", str, 0);
static int hook_flag_read(RAnalEsil *esil, char *flag, ut64 *num) {
sdb_array_add (esil->stats, "flg.read", flag, 0);
return 0;
}

View File

@ -798,9 +798,8 @@ typedef struct r_anal_esil_t {
/* deep esil parsing fills this */
Sdb *stats;
/* callbacks */
int (*hook_flag_read)(ESIL *esil, char flag, ut64 *num);
int (*hook_flag_read)(ESIL *esil, char *flag, ut64 *num);
int (*hook_command)(ESIL *esil, const char *op);
int (*hook_mem_read)(ESIL *esil, ut64 addr, ut8 *buf, int len);
int (*mem_read)(ESIL *esil, ut64 addr, ut8 *buf, int len);
int (*hook_mem_write)(ESIL *esil, ut64 addr, const ut8 *buf, int len);