add new API cs_group_name() to return group name in string, given the group id

This commit is contained in:
Nguyen Anh Quynh
2014-07-08 08:59:27 +08:00
parent faf368b656
commit 650f96ce43
28 changed files with 483 additions and 168 deletions

View File

@ -17,7 +17,7 @@ typedef void (*PostPrinter_t)(csh handle, cs_insn *, char *mnem, MCInst *mci);
typedef bool (*Disasm_t)(csh handle, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *info);
typedef const char *(*GetName_t)(csh handle, unsigned int reg);
typedef const char *(*GetName_t)(csh handle, unsigned int id);
typedef void (*GetID_t)(cs_struct *h, cs_insn *insn, unsigned int id);
@ -40,6 +40,7 @@ struct cs_struct {
bool big_endian;
GetName_t reg_name;
GetName_t insn_name;
GetName_t group_name;
GetID_t insn_id;
PostPrinter_t post_printer;
cs_err errnum;