2009-04-11 21:22:20 +00:00
|
|
|
/* radare - LGPL - Copyright 2009 */
|
|
|
|
/* nibble<.ds@gmail.com> */
|
|
|
|
/* pancake<nopcode.org> */
|
|
|
|
|
2010-03-03 11:08:27 +00:00
|
|
|
#if 0
|
2009-04-11 21:22:20 +00:00
|
|
|
#include <r_anal.h>
|
|
|
|
|
|
|
|
R_API void r_anal_ctx_init(struct r_anal_ctx_t *ctx)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-10-12 15:41:52 +00:00
|
|
|
R_API struct r_anal_ctx_t *r_anal_ctx_new(struct r_anal_t *anal)
|
2009-04-11 21:22:20 +00:00
|
|
|
{
|
2010-03-12 12:35:10 +00:00
|
|
|
struct r_anal_ctx_t *ctx = R_NEW(struct r_anal_ctx_t);
|
2009-04-11 21:22:20 +00:00
|
|
|
r_anal_ctx_init(ctx);
|
2009-10-12 15:41:52 +00:00
|
|
|
ctx->anal = anal;
|
2009-04-11 21:22:20 +00:00
|
|
|
return ctx;
|
|
|
|
}
|
|
|
|
|
2009-09-03 11:17:00 +00:00
|
|
|
R_API int r_anal_ctx_set_bytes(struct r_anal_t *anal, const ut8 *buf, int len)
|
|
|
|
{
|
2009-09-09 00:35:00 +00:00
|
|
|
return R_TRUE;
|
2009-09-03 11:17:00 +00:00
|
|
|
}
|
|
|
|
|
2009-04-11 21:22:20 +00:00
|
|
|
R_API void r_anal_ctx_reset(struct r_anal_t *anal)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* getter/setter */
|
|
|
|
R_API struct r_anal_ctx_t *r_anal_ctx_get(struct r_anal_t *anal)
|
|
|
|
{
|
|
|
|
return anal->ctx;
|
|
|
|
}
|
|
|
|
|
|
|
|
R_API void r_anal_ctx_set(struct r_anal_t *anal, struct r_anal_ctx_t *ctx)
|
|
|
|
{
|
|
|
|
anal->ctx = ctx;
|
|
|
|
}
|
|
|
|
#endif
|