1 /* radare - LGPL - Copyright 2014 - jn, maijin */
2 
3 #include <r_anal.h>
4 #include <r_types.h>
5 #include <r_lib.h>
6 
null_anal(RAnal * anal,RAnalOp * op,ut64 addr,const ut8 * data,int len,RAnalOpMask mask)7 static int null_anal(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask mask) {
8 	/* This should better follow the disassembler */
9 	return op->size = 1;
10 }
11 
null_set_reg_profile(RAnal * anal)12 static bool null_set_reg_profile(RAnal* anal){
13 	return r_reg_set_profile_string(anal->reg, "");
14 }
15 
16 RAnalPlugin r_anal_plugin_null = {
17 	.name = "null",
18 	.desc = "Fallback/Null analysis plugin",
19 	.arch = "none",
20 	.license = "LGPL3",
21 	.bits = 8|16|32|64,	/* is this used? */
22 	.op = &null_anal,
23 	.set_reg_profile = &null_set_reg_profile,
24 };
25 
26 #ifndef R2_PLUGIN_INCORE
27 R_API RLibStruct radare_plugin = {
28 	.type = R_LIB_TYPE_ANAL,
29 	.data = &r_anal_plugin_null,
30 	.version = R2_VERSION
31 };
32 #endif
33