From e0d46f96859b33b3f04791028e30bce4f0173567 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Jan 2024 12:08:53 +0100 Subject: auditordb tabularasa --- src/pq/pq_common.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/pq/pq_common.h') diff --git a/src/pq/pq_common.h b/src/pq/pq_common.h index 1562646ff..3248778a0 100644 --- a/src/pq/pq_common.h +++ b/src/pq/pq_common.h @@ -76,6 +76,21 @@ struct TALER_PQ_AmountP } __attribute__((packed)); +/** + * Memory representation of an taler amount record for Postgres. + * + * All values need to be in network-byte-order. + */ +struct TALER_PQ_AmountNullP +{ + uint32_t cnt; /* # elements in the tuple (== 2) */ + uint32_t oid_v; /* oid of .v */ + uint32_t sz_v; /* size of .v */ + uint32_t oid_f; /* oid of .f */ + uint32_t sz_f; /* size of .f */ +} __attribute__((packed)); + + /** * Memory representation of an taler amount record with currency for Postgres. * -- cgit v1.2.3