Rizin
unix-like reverse engineering framework and cli tools
rz_bind.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2015-2020 pancake <pancake@nopcode.org>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_BIND_H
5 #define RZ_BIND_H
6 
7 #include <rz_list.h>
8 
9 // TODO: These binds needs to be removed.
10 
11 typedef int (*RzCoreCmd)(void *core, const char *cmd);
12 typedef int (*RzCoreCmdF)(void *user, const char *fmt, ...);
13 typedef int (*RzCoreDebugBpHit)(void *core, void *bp);
14 typedef void (*RzCoreDebugSyscallHit)(void *core);
15 typedef char *(*RzCoreCmdStr)(void *core, const char *cmd);
16 typedef char *(*RzCoreCmdStrF)(void *core, const char *cmd, ...);
17 typedef void (*RzCorePuts)(const char *cmd);
18 typedef void (*RzCoreSetArchBits)(void *core, const char *arch, int bits);
19 typedef const char *(*RzCoreGetName)(void *core, ut64 off);
20 typedef char *(*RzCoreGetNameDelta)(void *core, ut64 off);
21 typedef void (*RzCoreSeekArchBits)(void *core, ut64 addr);
22 typedef ut64 (*RzCoreConfigGetI)(void *core, const char *key);
23 typedef const char *(*RzCoreConfigGet)(void *core, const char *key);
24 typedef bool (*RzCoreConfigSet)(void *core, const char *key, const char *value);
25 typedef bool (*RzCoreConfigSetI)(void *core, const char *key, ut64 value);
26 typedef ut64 (*RzCoreNumGet)(void *core, const char *str);
27 typedef const RzList *(*RzCoreFlagsGet)(void *core, ut64 offset);
28 typedef bool (*RzCoreBinApplyInfo)(void *core, void *binfile, ut32 mask);
29 
30 typedef struct rz_core_bind_t {
31  void *core;
51 
52 #endif
#define mask()
int bits(struct state *s, int need)
Definition: blast.c:72
static int value
Definition: cmd_api.c:93
cs_arch arch
Definition: cstool.c:13
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
Definition: sflib.h:79
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
Definition: sflib.h:118
uint32_t ut32
voidpf uLong offset
Definition: ioapi.h:144
int off
Definition: pal.c:13
const char *(* RzCoreGetName)(void *core, ut64 off)
Definition: rz_bind.h:19
ut64(* RzCoreNumGet)(void *core, const char *str)
Definition: rz_bind.h:26
ut64(* RzCoreConfigGetI)(void *core, const char *key)
Definition: rz_bind.h:22
char *(* RzCoreGetNameDelta)(void *core, ut64 off)
Definition: rz_bind.h:20
struct rz_core_bind_t RzCoreBind
char *(* RzCoreCmdStr)(void *core, const char *cmd)
Definition: rz_bind.h:15
void(* RzCorePuts)(const char *cmd)
Definition: rz_bind.h:17
int(* RzCoreCmd)(void *core, const char *cmd)
Definition: rz_bind.h:11
bool(* RzCoreConfigSet)(void *core, const char *key, const char *value)
Definition: rz_bind.h:24
bool(* RzCoreBinApplyInfo)(void *core, void *binfile, ut32 mask)
Definition: rz_bind.h:28
char *(* RzCoreCmdStrF)(void *core, const char *cmd,...)
Definition: rz_bind.h:16
void(* RzCoreSetArchBits)(void *core, const char *arch, int bits)
Definition: rz_bind.h:18
void(* RzCoreSeekArchBits)(void *core, ut64 addr)
Definition: rz_bind.h:21
bool(* RzCoreConfigSetI)(void *core, const char *key, ut64 value)
Definition: rz_bind.h:25
const char *(* RzCoreConfigGet)(void *core, const char *key)
Definition: rz_bind.h:23
void(* RzCoreDebugSyscallHit)(void *core)
Definition: rz_bind.h:14
int(* RzCoreCmdF)(void *user, const char *fmt,...)
Definition: rz_bind.h:12
const RzList *(* RzCoreFlagsGet)(void *core, ut64 offset)
Definition: rz_bind.h:27
int(* RzCoreDebugBpHit)(void *core, void *bp)
Definition: rz_bind.h:13
static int
Definition: sfsocketcall.h:114
RzCoreConfigSet cfgSet
Definition: rz_bind.h:45
RzCoreSetArchBits setab
Definition: rz_bind.h:39
RzCoreBinApplyInfo applyBinInfo
Definition: rz_bind.h:49
RzCoreFlagsGet flagsGet
Definition: rz_bind.h:48
RzCoreCmd cmd
Definition: rz_bind.h:32
RzCoreCmdStr cmdstr
Definition: rz_bind.h:34
RzCoreCmdStrF cmdstrf
Definition: rz_bind.h:35
RzCoreConfigSetI cfgSetI
Definition: rz_bind.h:46
RzCoreConfigGet cfgGet
Definition: rz_bind.h:44
RzCoreNumGet numGet
Definition: rz_bind.h:47
void * core
Definition: rz_bind.h:31
RzCoreDebugSyscallHit syshit
Definition: rz_bind.h:38
RzCoreDebugBpHit bphit
Definition: rz_bind.h:37
RzCoreGetNameDelta getNameDelta
Definition: rz_bind.h:41
RzCoreGetName getName
Definition: rz_bind.h:40
RzCorePuts puts
Definition: rz_bind.h:36
RzCoreSeekArchBits archbits
Definition: rz_bind.h:42
RzCoreCmdF cmdf
Definition: rz_bind.h:33
RzCoreConfigGetI cfggeti
Definition: rz_bind.h:43
#define bool
Definition: sysdefs.h:146
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static int addr
Definition: z80asm.c:58