2009-02-18 21:10:47 +00:00
|
|
|
/* radare - GPL3 - Copyright 2009 nibble<.ds@gmail.com> */
|
2009-02-18 00:49:26 +00:00
|
|
|
|
|
|
|
#include <r_types.h>
|
|
|
|
#include <r_lib.h>
|
|
|
|
#include <r_asm.h>
|
|
|
|
|
2009-02-18 02:47:40 +00:00
|
|
|
|
2009-07-08 11:49:55 +00:00
|
|
|
static int disassemble(struct r_asm_t *a, struct r_asm_aop_t *aop, ut8 *buf, ut64 len)
|
2009-02-18 00:49:26 +00:00
|
|
|
{
|
|
|
|
printf("Dummy (dis)assembly plugin");
|
|
|
|
|
|
|
|
return R_FALSE;
|
|
|
|
}
|
|
|
|
|
2009-03-10 11:21:46 +00:00
|
|
|
struct r_asm_handle_t r_asm_plugin_dummy = {
|
2009-02-18 00:49:26 +00:00
|
|
|
.name = "asm_dummy",
|
2009-04-11 21:22:20 +00:00
|
|
|
.arch = "none",
|
|
|
|
.bits = (int[]){ 0 },
|
2009-02-18 00:49:26 +00:00
|
|
|
.desc = "dummy disassembly plugin",
|
|
|
|
.init = NULL,
|
|
|
|
.fini = NULL,
|
|
|
|
.disassemble = &disassemble,
|
2009-08-14 00:37:18 +00:00
|
|
|
.assemble = NULL,
|
|
|
|
.fastcall = NULL,
|
2009-02-18 00:49:26 +00:00
|
|
|
};
|
|
|
|
|
2009-03-10 11:21:46 +00:00
|
|
|
#ifndef CORELIB
|
2009-02-18 00:49:26 +00:00
|
|
|
struct r_lib_struct_t radare_plugin = {
|
|
|
|
.type = R_LIB_TYPE_ASM,
|
|
|
|
.data = &r_asm_plugin_dummy
|
|
|
|
};
|
2009-03-10 11:21:46 +00:00
|
|
|
#endif
|