diff options
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 */ + }; |