radare2/libr/include/r_bind.h

36 lines
1.1 KiB
C
Raw Normal View History

2016-02-25 01:58:26 +00:00
/* radare2 - LGPL - Copyright 2015-2016 - pancake */
#ifndef R2_BIND_H
#define R2_BIND_H
// TODO: move riobind here too?
2016-02-25 01:58:26 +00:00
// TODO: move rprint here too
typedef int (*RCoreCmd)(void *core, const char *cmd);
2017-08-02 13:58:59 +00:00
typedef int (*RCoreCmdF)(void *user, const char *fmt, ...);
typedef int (*RCoreDebugBpHit)(void *core, void *bp);
typedef char* (*RCoreCmdStr)(void *core, const char *cmd);
2017-08-02 13:58:59 +00:00
typedef char* (*RCoreCmdStrF)(void *core, const char *cmd, ...);
typedef void (*RCorePuts)(const char *cmd);
typedef void (*RCoreSetArchBits)(void *core, const char *arch, int bits);
typedef const char *(*RCoreGetName)(void *core, ut64 off);
typedef char *(*RCoreGetNameDelta)(void *core, ut64 off);
typedef void (*RCoreSeekArchBits)(void *core, ut64 addr);
typedef int (*RCoreConfigGetI)(void *core, const char *key);
typedef struct r_core_bind_t {
void *core;
RCoreCmd cmd;
2017-08-02 13:58:59 +00:00
RCoreCmdF cmdf;
RCoreCmdStr cmdstr;
2017-08-02 13:58:59 +00:00
RCoreCmdStrF cmdstrf;
2016-02-25 01:58:26 +00:00
RCorePuts puts;
RCoreDebugBpHit bphit;
RCoreSetArchBits setab;
RCoreGetName getName;
RCoreGetNameDelta getNameDelta;
RCoreSeekArchBits archbits;
2017-08-03 11:39:05 +00:00
RCoreConfigGetI cfggeti;
} RCoreBind;
#endif