mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-26 07:17:01 +00:00
9442317413
- Remove plugin prefixes - It was unnecessary complicated - Remove unused code - Some RAPIfication - Rename _set( methods into _use( - Simplify some string processing - r_parse is working again - Sync all those api changes in r_core - External static plugin lists moved to .c - Fix some cast-related segfaults in core * Review the r_search API - RAPIfication - Allow to pass NULL as binmask - Added TODO with some more ideas
33 lines
632 B
C
33 lines
632 B
C
/* radare - GPL3 - Copyright 2009 nibble<.ds@gmail.com> */
|
|
|
|
#include <r_types.h>
|
|
#include <r_lib.h>
|
|
#include <r_asm.h>
|
|
|
|
|
|
static int disassemble(struct r_asm_t *a, struct r_asm_aop_t *aop, ut8 *buf, ut64 len)
|
|
{
|
|
printf("Dummy (dis)assembly plugin");
|
|
|
|
return R_FALSE;
|
|
}
|
|
|
|
struct r_asm_handle_t r_asm_plugin_dummy = {
|
|
.name = "dummy",
|
|
.arch = "none",
|
|
.bits = (int[]){ 0 },
|
|
.desc = "dummy disassembly plugin",
|
|
.init = NULL,
|
|
.fini = NULL,
|
|
.disassemble = &disassemble,
|
|
.assemble = NULL,
|
|
.fastcall = NULL,
|
|
};
|
|
|
|
#ifndef CORELIB
|
|
struct r_lib_struct_t radare_plugin = {
|
|
.type = R_LIB_TYPE_ASM,
|
|
.data = &r_asm_plugin_dummy
|
|
};
|
|
#endif
|