diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-14 19:40:07 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-14 19:40:07 (GMT) |
commit | 0286b53bad21abf91cbe17c4772ca9cde6a89cbc (patch) | |
tree | 3bec9dc7e118c00ce9c748576b01606a71880ad7 /src/arch/operand-int.h | |
parent | 267b1ae8608ed4bf52de743798e8647c903ee1b4 (diff) |
Created an instruction database for Chrysalide.
Diffstat (limited to 'src/arch/operand-int.h')
-rw-r--r-- | src/arch/operand-int.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h index ac8d07c..c052e0a 100644 --- a/src/arch/operand-int.h +++ b/src/arch/operand-int.h @@ -38,6 +38,12 @@ typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *, AsmSynta /* Construit un petit résumé concis de l'opérande. */ typedef char * (* operand_build_tooltip_fc) (const GArchOperand *, const GLoadedBinary *); +/* Charge un opérande depuis une mémoire tampon. */ +typedef bool (* unserialize_operand_fc) (GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); + +/* Sauvegarde un opérande dans une mémoire tampon. */ +typedef bool (* serialize_operand_fc) (const GArchOperand *, GAsmStorage *, packed_buffer *); + /* Adjonction de rendu alternatif */ typedef struct _alt_rendering @@ -67,6 +73,9 @@ struct _GArchOperandClass operand_print_fc print; /* Texte humain équivalent */ operand_build_tooltip_fc build_tooltip; /* Construction de description */ + unserialize_operand_fc unserialize; /* Chargement depuis un tampon */ + serialize_operand_fc serialize; /* Conservation dans un tampon */ + }; |