diff options
Diffstat (limited to 'src/arch/operand.h')
-rw-r--r-- | src/arch/operand.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/arch/operand.h b/src/arch/operand.h index fab1344..e083668 100644 --- a/src/arch/operand.h +++ b/src/arch/operand.h @@ -98,4 +98,33 @@ void print_imm_operand(const asm_operand *, char *, size_t, AsmSyntax); + +#include <glib-object.h> + + +#include "../format/exe_format.h" + + + +#define G_TYPE_ARCH_OPERAND g_arch_operand_get_type() +#define G_ARCH_OPERAND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_arch_operand_get_type(), GArchOperand)) +#define G_IS_ARCH_OPERAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_arch_operand_get_type())) +#define G_ARCH_OPERAND_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_arch_operand_get_type(), GArchOperandIface)) + + +/* Définition générique d'un opérande d'architecture (instance) */ +typedef struct _GArchOperand GArchOperand; + +/* Définition générique d'un opérande d'architecture (classe) */ +typedef struct _GArchOperandClass GArchOperandClass; + + +/* Indique le type défini pour un opérande d'architecture. */ +GType g_arch_operand_get_type(void); + +/* Traduit un opérande en version humainement lisible. */ +char *g_arch_operand_get_text(const GArchOperand *, const exe_format *, AsmSyntax); + + + #endif /* _ARCH_OPERAND_H */ |