summaryrefslogtreecommitdiff
path: root/src/arch/operand-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/operand-int.h')
-rw-r--r--src/arch/operand-int.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h
index 000700c..4a515c3 100644
--- a/src/arch/operand-int.h
+++ b/src/arch/operand-int.h
@@ -28,6 +28,9 @@
#include <stdint.h>
+#include "operand.h"
+
+
/* Types d'opérandes rencontrables */
typedef enum _AsmOperandType
@@ -80,4 +83,43 @@ struct _asm_operand
+
+
+
+
+/* Traduit un opérande en version humainement lisible. */
+typedef char * (* get_operand_text_fc) (const GArchOperand *, const exe_format *, AsmSyntax);
+
+
+/* Définition générique d'un opérande d'architecture (instance) */
+struct _GArchOperand
+{
+ GObject parent; /* A laisser en premier */
+
+ get_operand_text_fc get_text; /* Texte humain équivalent */
+
+};
+
+
+
+
+
+
+
+/* Définition générique d'un opérande d'architecture (classe) */
+struct _GArchOperandClass
+{
+ GObjectClass parent; /* A laisser en premier */
+
+};
+
+
+
+
+
+
+
+
+
+
#endif /* _ARCH_OPERAND_INT_H */