mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 16:59:08 +00:00
05a4ed6607
This born to handle arm/thumb since is a pain and we need to track in which mode we are.
28 lines
770 B
C
28 lines
770 B
C
/* radare2 - LGPL - Copyright 2015-2016 - pancake */
|
|
#ifndef R2_BIND_H
|
|
#define R2_BIND_H
|
|
|
|
// TODO: move riobind here too?
|
|
// TODO: move rprint here too
|
|
|
|
typedef int (*RCoreCmd)(void *core, const char *cmd);
|
|
typedef int (*RCoreDebugBpHit)(void *core, void *bp);
|
|
typedef char* (*RCoreCmdStr)(void *core, const char *cmd);
|
|
typedef void (*RCorePuts)(const char *cmd);
|
|
typedef void (*RCoreSetArchBits)(void *core, const char *arch, int bits);
|
|
typedef char *(*RCoreGetName)(void *core, ut64 off);
|
|
typedef void (*RCoreSeekArchBits)(void *core, ut64 addr);
|
|
|
|
typedef struct r_core_bind_t {
|
|
void *core;
|
|
RCoreCmd cmd;
|
|
RCoreCmdStr cmdstr;
|
|
RCorePuts puts;
|
|
RCoreDebugBpHit bphit;
|
|
RCoreSetArchBits setab;
|
|
RCoreGetName getName;
|
|
RCoreSeekArchBits archbits;
|
|
} RCoreBind;
|
|
|
|
#endif
|