summaryrefslogtreecommitdiff
path: root/src/include/taler_pq_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-06 11:25:13 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-06 11:25:13 +0200
commitf8723b9b5d6a47c0d256ac6cf7fcd984a6e10484 (patch)
tree8e0d5df6409856d17be75f5ae5d93c068c1fde38 /src/include/taler_pq_lib.h
parent85e59ceb1a704db77b8d48b5e9ccc26c0283559b (diff)
downloadexchange-f8723b9b5d6a47c0d256ac6cf7fcd984a6e10484.tar.gz
exchange-f8723b9b5d6a47c0d256ac6cf7fcd984a6e10484.tar.bz2
exchange-f8723b9b5d6a47c0d256ac6cf7fcd984a6e10484.zip
expanding PQ APIs with cleanup function
Diffstat (limited to 'src/include/taler_pq_lib.h')
-rw-r--r--src/include/taler_pq_lib.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/taler_pq_lib.h b/src/include/taler_pq_lib.h
index f6f64178a..d31ecf84c 100644
--- a/src/include/taler_pq_lib.h
+++ b/src/include/taler_pq_lib.h
@@ -133,7 +133,7 @@ enum TALER_PQ_ResultFormat
/**
* We have a currency amount.
- * Data points to a `struct TALER_AmountNBO`, size is not used.
+ * Data points to a `struct TALER_AmountNBO`, size only used for checking.
*/
TALER_PQ_RF_AMOUNT_NBO
};
@@ -252,6 +252,16 @@ TALER_PQ_extract_result (PGresult *result,
/**
+ * Free all memory that was allocated in @a rs during
+ * #TALER_PQ_extract_result().
+ *
+ * @param rs reult specification to clean up
+ */
+void
+TALER_PQ_cleanup_result (struct TALER_PQ_ResultSpec *rs);
+
+
+/**
* Extract a currency amount from a query result according to the
* given specification.
*