summaryrefslogtreecommitdiff
path: root/src/analysis
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/analysis
parentce46ff64c00a90d03e2481dcaf1e713f22b71492 (diff)
Provide a serialization capability for operands.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/storage/storage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/analysis/storage/storage.h b/src/analysis/storage/storage.h
index 43860af..0d35d78 100644
--- a/src/analysis/storage/storage.h
+++ b/src/analysis/storage/storage.h
@@ -55,6 +55,14 @@ GType g_object_storage_get_type(void);
/* Crée le support d'une conservation d'objets en place. */
GObjectStorage *g_object_storage_new(const char *);
+#define get_storage_linked_format(s) \
+ ({ \
+ void*__result; \
+ __result = g_object_get_data(G_OBJECT(s), "format"); \
+ g_object_ref(G_OBJECT(__result)); \
+ __result; \
+ })
+
/* Charge le support d'une conservation d'objets en place. */
GObjectStorage *g_object_storage_load(packed_buffer_t *);