rizin/shlr/java/code.h
Adam Pridgen bc2ee1f869 Improved plugin analysis allowing plugin developers to define custom
analysis algorithms.
Java analysis plugin is re-written to leverage this capability.
Added some new R_ANAL types, and some of the respective operations and strings.
Updated io-component files to get file size and info
2014-01-03 00:28:46 +01:00

29 lines
821 B
C

#ifndef _INCLUDE_R_JAVA_H_
#define _INCLUDE_R_JAVA_H_
#include <r_types.h>
#include "class.h"
typedef struct java_op {
const char *name;
unsigned char byte;
int size;
ut64 op_type;
} JavaOp;
extern struct java_op java_ops[];
static char * java_resolve_with_space(int idx);
static char * java_resolve_without_space(int idx);
static char * java_resolve(int idx, ut8 space_bn_name_type);
int java_print_opcode(ut64 addr, int idx, const ut8 *bytes, char *output, int outlen);
//int r_java_disasm(const ut8 *bytes, char *output, int len);
unsigned short read_short(FILE *fd);
int java_classdump(const char *file, int verbose);
R_API int r_java_disasm(ut64 addr, const ut8 *bytes, char *output, int len);
R_API int r_java_assemble(ut8 *bytes, const char *string);
R_API void r_java_set_obj(RBinJavaObj *obj);
#endif