Rizin
unix-like reverse engineering framework and cli tools
label.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 heersin <teablearcher@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_IL_EFFECT_H
5 #define RZ_IL_EFFECT_H
6 
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <rz_util.h>
10 #include <rz_type.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef enum {
21  // more
23 
24 typedef struct rz_il_effect_label_t {
25  char *label_id;
26  union {
28  void *hook;
29  };
32 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif // RZ_IL_EFFECT_H
#define RZ_API
struct rz_il_effect_label_t RzILEffectLabel
RzILEffectLabelType
Definition: label.h:17
@ EFFECT_LABEL_HOOK
Definition: label.h:20
@ EFFECT_LABEL_ADDR
Definition: label.h:18
@ EFFECT_LABEL_SYSCALL
Definition: label.h:19
RZ_API RzILEffectLabel * rz_il_effect_label_new(RZ_NONNULL const char *name, RzILEffectLabelType type)
Definition: label.c:6
RZ_API RzILEffectLabel * rz_il_effect_label_dup(RZ_NONNULL RzILEffectLabel *lbl)
Definition: label.c:28
RZ_API void rz_il_effect_label_free(RzILEffectLabel *lbl)
Definition: label.c:16
int type
Definition: mipsasm.c:17
#define RZ_NONNULL
Definition: rz_types.h:64
structure for bitvector
Definition: rz_bitvector.h:19
Definition: z80asm.h:102
char * label_id
Label name.
Definition: label.h:25
void * hook
Function pointer if EFFECT_LABEL_SYSCALL / EFFECT_LABEL_HOOK.
Definition: label.h:28
RzBitVector * addr
RzBitVector address if EFFECT_LABEL_ADDR.
Definition: label.h:27
RzILEffectLabelType type
type of label
Definition: label.h:30