2012-11-16 01:29:30 +00:00
|
|
|
#ifndef _INCLUDE_R_JAVA_H_
|
|
|
|
#define _INCLUDE_R_JAVA_H_
|
|
|
|
|
|
|
|
#include <r_types.h>
|
|
|
|
#include "class.h"
|
|
|
|
|
2014-01-02 05:09:46 +00:00
|
|
|
typedef struct java_op {
|
|
|
|
const char *name;
|
2012-11-16 01:29:30 +00:00
|
|
|
unsigned char byte;
|
|
|
|
int size;
|
2014-01-02 05:09:46 +00:00
|
|
|
ut64 op_type;
|
|
|
|
} JavaOp;
|
2012-11-16 01:29:30 +00:00
|
|
|
|
2014-05-12 02:06:40 +00:00
|
|
|
#define JAVA_OPS_COUNT 297
|
2016-02-28 21:39:44 +00:00
|
|
|
extern struct java_op JAVA_OPS[JAVA_OPS_COUNT];
|
2017-05-16 18:14:39 +00:00
|
|
|
R_API int java_print_opcode(RBinJavaObj *obj, ut64 addr, int idx, const ut8 *bytes, int len, char *output, int outlen);
|
2016-04-09 23:23:18 +00:00
|
|
|
R_API int r_java_disasm(RBinJavaObj *obj, ut64 addr, const ut8 *bytes, int len, char *output, int outlen);
|
2017-07-17 10:17:53 +00:00
|
|
|
R_API int r_java_assemble(ut64 addr, ut8 *bytes, const char *string);
|
2014-02-14 19:40:22 +00:00
|
|
|
//R_API void r_java_set_obj(RBinJavaObj *obj);
|
2018-11-05 10:25:31 +00:00
|
|
|
R_API void r_java_new_method(void);
|
2012-11-16 01:29:30 +00:00
|
|
|
|
|
|
|
#endif
|