2016-02-25 02:58:26 +01:00
|
|
|
/* radare2 - LGPL - Copyright 2015-2016 - pancake */
|
2014-10-30 22:58:51 +01:00
|
|
|
#ifndef R2_BIND_H
|
|
|
|
#define R2_BIND_H
|
|
|
|
|
|
|
|
// TODO: move riobind here too?
|
2016-02-25 02:58:26 +01:00
|
|
|
// TODO: move rprint here too
|
2014-10-30 22:58:51 +01:00
|
|
|
|
|
|
|
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);
|
2016-09-26 17:04:26 +02:00
|
|
|
typedef void (*RCoreSetArchBits)(void *core, const char *arch, int bits);
|
2016-10-16 02:34:54 +02:00
|
|
|
typedef char *(*RCoreGetName)(void *core, ut64 off);
|
2017-02-07 23:51:44 +01:00
|
|
|
typedef void (*RCoreSeekArchBits)(void *core, ut64 addr);
|
2014-10-30 22:58:51 +01:00
|
|
|
|
|
|
|
typedef struct r_core_bind_t {
|
|
|
|
void *core;
|
|
|
|
RCoreCmd cmd;
|
|
|
|
RCoreCmdStr cmdstr;
|
2016-02-25 02:58:26 +01:00
|
|
|
RCorePuts puts;
|
2014-10-30 22:58:51 +01:00
|
|
|
RCoreDebugBpHit bphit;
|
2016-09-26 17:04:26 +02:00
|
|
|
RCoreSetArchBits setab;
|
2016-10-16 02:34:54 +02:00
|
|
|
RCoreGetName getName;
|
2017-02-07 23:51:44 +01:00
|
|
|
RCoreSeekArchBits archbits;
|
2014-10-30 22:58:51 +01:00
|
|
|
} RCoreBind;
|
|
|
|
|
|
|
|
#endif
|