From ee59ceb588d5623cc0533ec6b8e49d9a400fa666 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 30 Jan 2023 10:47:17 +1030 Subject: [PATCH] Add TRANSIENT field support. --- ez-blob-basic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ez-blob-basic.c b/ez-blob-basic.c index 9378577..8149eea 100644 --- a/ez-blob-basic.c +++ b/ez-blob-basic.c @@ -17,6 +17,7 @@ . */ +#include #include #include #include @@ -83,6 +84,8 @@ size_t ez_basic_size(const ez_blob_desc *desc, const void *p) { else abort(); break; + case EZ_BLOB_TRANSIENTP: + break; default: abort(); } @@ -150,8 +153,12 @@ int ez_basic_decode_raw(const ez_blob_desc *desc, const ez_blob *blob, void *p) } } else abort(); + break; + case EZ_BLOB_TRANSIENTP: + *(void **)v = NULL; break; default: + fprintf(stderr, "unknown type code: %02x\n", d->bd_type); abort(); } } @@ -235,6 +242,8 @@ int ez_basic_encode_raw(const ez_blob_desc *desc, const void *p, ez_blob *blob) } else abort(); break; + case EZ_BLOB_TRANSIENTP: + break; default: abort(); } -- 2.39.5