summaryrefslogtreecommitdiff
path: root/src/arch/instruction-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-03-08 16:09:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-03-08 16:09:24 (GMT)
commita33dd28e763e3a8b04145fb549aca9320e100a4b (patch)
tree26a99bc5b7e640c751dfbeba93994aa74b2ea9df /src/arch/instruction-int.h
parent2a03971cd2b19a6716a0e5e6896dcfcc91031a6a (diff)
Prepared instructions to generate tooltips.
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r--src/arch/instruction-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index fb1f796..081adba 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -37,6 +37,9 @@ typedef const char * (* get_instruction_encoding_fc) (const GArchInstruction *);
/* Fournit le nom humain de l'instruction manipulée. */
typedef const char * (* get_instruction_keyword_fc) (GArchInstruction *, AsmSyntax );
+/* Construit un petit résumé concis de l'instruction. */
+typedef char * (* build_instruction_tooltip_fc) (const GArchInstruction *);
+
/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */
typedef GBufferLine * (* print_instruction_fc) (const GArchInstruction *, GBufferLine *, size_t, size_t, const GBinContent *);
@@ -91,6 +94,7 @@ struct _GArchInstructionClass
get_instruction_encoding_fc get_encoding; /* Obtention de l'encodage */
get_instruction_keyword_fc get_keyword; /* Texte humain équivalent */
+ build_instruction_tooltip_fc build_tooltip; /* Construction d'une bulle*/
print_instruction_fc print; /* Imprime l'ensemble */