radare2/libr/include/r_bind.h
2016-02-25 02:58:26 +01:00

22 lines
507 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 struct r_core_bind_t {
void *core;
RCoreCmd cmd;
RCoreCmdStr cmdstr;
RCorePuts puts;
RCoreDebugBpHit bphit;
} RCoreBind;
#endif