From f8723b9b5d6a47c0d256ac6cf7fcd984a6e10484 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 6 May 2015 11:25:13 +0200 Subject: expanding PQ APIs with cleanup function --- src/include/taler_pq_lib.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/include/taler_pq_lib.h') 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 }; @@ -251,6 +251,16 @@ TALER_PQ_extract_result (PGresult *result, int row); +/** + * 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. -- cgit v1.2.3