summaryrefslogtreecommitdiff
path: root/src/pq/pq_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-18 12:08:53 +0100
committerChristian Grothoff <christian@grothoff.org>2024-02-07 23:48:45 +0100
commite0d46f96859b33b3f04791028e30bce4f0173567 (patch)
tree18478e55759cf318da746e64353183601dfb3899 /src/pq/pq_common.h
parentb5de0afa73c0b8f7bcf988e2bc00f07f4f6cf42e (diff)
downloadexchange-e0d46f96859b33b3f04791028e30bce4f0173567.tar.gz
exchange-e0d46f96859b33b3f04791028e30bce4f0173567.tar.bz2
exchange-e0d46f96859b33b3f04791028e30bce4f0173567.zip
auditordb tabularasa
Diffstat (limited to 'src/pq/pq_common.h')
-rw-r--r--src/pq/pq_common.h15
1 files changed, 15 insertions, 0 deletions
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
@@ -77,6 +77,21 @@ struct TALER_PQ_AmountP
/**
+ * 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.
*
* All values need to be in network-byte-order.