summaryrefslogtreecommitdiff
path: root/src/format/symbol-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-09-26 21:21:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-09-26 21:21:41 (GMT)
commitdc25699a414f0baa2265be0cfa162c77b2cdc22d (patch)
treeda0d2d78716e6818aa7e1b8851f70f47da8a905f /src/format/symbol-int.h
parentce46ff64c00a90d03e2481dcaf1e713f22b71492 (diff)
Provide a serialization capability for operands.
Diffstat (limited to 'src/format/symbol-int.h')
-rw-r--r--src/format/symbol-int.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format/symbol-int.h b/src/format/symbol-int.h
index 7f5807c..7f8bb7f 100644
--- a/src/format/symbol-int.h
+++ b/src/format/symbol-int.h
@@ -26,6 +26,7 @@
#include "symbol.h"
+#include "../analysis/storage/serialize-int.h"
#include "../glibext/objhole.h"
@@ -33,6 +34,12 @@
/* Fournit une étiquette pour viser un symbole. */
typedef char * (* get_symbol_label_fc) (const GBinSymbol *);
+/* Charge un contenu depuis une mémoire tampon. */
+typedef bool (* load_symbol_fc) (GBinSymbol *, GObjectStorage *, packed_buffer_t *);
+
+/* Sauvegarde un contenu dans une mémoire tampon. */
+typedef bool (* store_symbol_fc) (GBinSymbol *, GObjectStorage *, packed_buffer_t *);
+
/* Informations glissées dans la structure GObject de GBinSymbol */
typedef struct _sym_extra_data_t
@@ -86,6 +93,9 @@ struct _GBinSymbolClass
get_symbol_label_fc get_label; /* Obtention d'une étiquette */
+ load_symbol_fc load; /* Chargement depuis un tampon */
+ store_symbol_fc store; /* Conservation dans un tampon */
+
};