summaryrefslogtreecommitdiff
path: root/src/analysis/type.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-03-07 21:20:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-03-07 21:20:37 (GMT)
commitc728479b9006dde8d377e9029936de9a625c806b (patch)
tree36228a10cca08737a3df9c4eb22dc490d3205452 /src/analysis/type.c
parentfde9e3b46192a065ec622da1395c48015df3cf32 (diff)
Load and store data types with proper functions.
Diffstat (limited to 'src/analysis/type.c')
-rw-r--r--src/analysis/type.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/analysis/type.c b/src/analysis/type.c
index 4a0b7d8..e2547bd 100644
--- a/src/analysis/type.c
+++ b/src/analysis/type.c
@@ -215,8 +215,7 @@ static bool _g_data_type_load(GDataType *type, GObjectStorage *storage, packed_b
if (ns_sep[0] != '\0')
{
- //result = g_data_type_load(type->namespace, storage, pbuf); // TODO
- namespace = NULL;
+ namespace = G_DATA_TYPE(g_object_storage_unpack_object(storage, "types", pbuf));
result = (namespace != NULL);
if (!result) goto exit;
@@ -299,7 +298,7 @@ static bool _g_data_type_store(const GDataType *type, GObjectStorage *storage, p
{
assert(type->namespace != NULL);
- result = g_data_type_store(type->namespace, storage, pbuf);
+ result = g_object_storage_pack_object(storage, "types", G_SERIALIZABLE_OBJECT(type->namespace), pbuf);
if (!result) goto unlocking_exit;
}