donau

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

commit 58047a5cc2d7ad5006a94690fc9b249b6062bb15
parent a1f8d7afc2e686377fb8b4e195111d2fa129c265
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Mon, 15 Jan 2024 10:41:39 +0100

[header] some changes on charity get

Diffstat:
Msrc/include/donau_service.h | 22+++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/src/include/donau_service.h b/src/include/donau_service.h @@ -792,7 +792,7 @@ DONAU_csr_batch_issue_cancel ( /** * A Charity */ -struct CharitySummary +struct DONAU_CharitySummary { /** * charity id @@ -850,7 +850,7 @@ struct DONAU_GetCharitiesResponse /** * Charity status information. */ - struct CharitySummary *charity; + struct DONAU_CharitySummary *charity; /** * Number of charities @@ -915,7 +915,7 @@ DONAU_charities_get_cancel ( /* ********************* GET /charities/$CHARITY_ID *********************** */ -struct CharityHistoryYear +struct DONAU_CharityHistoryYear { /** * year @@ -932,14 +932,9 @@ struct CharityHistoryYear /** * information of a charity */ -struct Charity +struct DONAU_Charity { /** - * Charity id - */ - uint64_t charity_id; - - /** * name of the charity */ char *name; @@ -957,12 +952,12 @@ struct Charity /** * donation history */ - struct CharityHistoryYear *donation_history; + struct DONAU_CharityHistoryYear *donation_history; /** * number of charity history years */ - unsigned int num_hist; + uint32_t num_hist; }; @@ -1000,7 +995,7 @@ struct DONAU_GetCharityResponse /** * Charity status information. */ - struct Charity charity; + struct DONAU_Charity *charity; } ok; @@ -1044,8 +1039,9 @@ struct DONAU_CharityGetHandle * DONAU_charity_get ( struct GNUNET_CURL_Context *ctx, const char *url, - const struct DONAU_BearerToken bearer, const uint64_t id, + const struct DONAU_BearerToken bearer, + struct GNUNET_TIME_Relative timeout, DONAU_GetCharityResponseCallback cb, void *cb_cls);