donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 15701789477ec567d9dc3748822d54e5248fa1e3
parent 65efabc74d61df615652373a900c04d5d53753c8
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Tue, 19 Mar 2024 11:57:13 +0100

added missing pq lib

Diffstat:
Asrc/include/donau_pq_lib.h | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+), 0 deletions(-)

diff --git a/src/include/donau_pq_lib.h b/src/include/donau_pq_lib.h @@ -0,0 +1,53 @@ +/* + This file is part of TALER + Copyright (C) 2024 Taler Systems SA + + TALER is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + TALER is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> +*/ +/** + * @file include/donau_pq_lib.h + * @brief helper functions for DB interactions + * @author Johannes Casaburi> + */ +#ifndef DONAU_PQ_LIB_H_ +#define DONAU_PQ_LIB_H_ + +#include <gnunet/gnunet_common.h> +#include <gnunet/gnunet_pq_lib.h> +#include "taler/taler_util.h" + +/** + * Generate query parameter for a denomination public + * key. Internally, the various attributes of the + * public key will be serialized into on variable-size + * BLOB. + * + * @param denom_pub pointer to the query parameter to pass + */ +struct GNUNET_PQ_QueryParam +DONAU_PQ_query_param_donation_unit_pub ( + const struct DONAU_DonationUnitPublicKey *donation_unit_pub); + +/** + * Denomination public key expected. + * + * @param name name of the field in the table + * @param[out] denom_pub where to store the public key + * @return array entry for the result specification to use + */ +struct GNUNET_PQ_ResultSpec +DONAU_PQ_result_spec_donation_unit_pub (const char *name, + struct DONAU_DonationUnitPublicKey *donation_unit_pub); + +#endif /* DONAU_PQ_LIB_H_ */ + +/* end of include/donau_pq_lib.h */ +\ No newline at end of file