summaryrefslogtreecommitdiff
path: root/src/arch/operand.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-05-11 23:42:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-05-11 23:42:48 (GMT)
commit96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (patch)
tree68e49f325de3e93ef186d3e078da8ddc473aedf7 /src/arch/operand.h
parent80dc0ac97987ad9246bee7c47458a015339453bf (diff)
Reorganized the way the program is built again and added partial support for the JVM.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@63 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/operand.h')
-rw-r--r--src/arch/operand.h29
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 */