gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-donau] branch master updated: [header] add bearer token to charit


From: gnunet
Subject: [taler-donau] branch master updated: [header] add bearer token to charity GET requests
Date: Sun, 17 Dec 2023 17:36:52 +0100

This is an automated email from the git hooks/post-receive script.

lukas-matyja pushed a commit to branch master
in repository donau.

The following commit(s) were added to refs/heads/master by this push:
     new 7327be4  [header] add bearer token to charity GET requests
7327be4 is described below

commit 7327be4c29fad5fb6a82fb0ad3f662d784bcc162
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
AuthorDate: Sun Dec 17 17:37:13 2023 +0100

    [header] add bearer token to charity GET requests
---
 src/include/donau_service.h | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/include/donau_service.h b/src/include/donau_service.h
index 76fe068..b651af4 100644
--- a/src/include/donau_service.h
+++ b/src/include/donau_service.h
@@ -780,7 +780,7 @@ struct CharitySummary
   /**
    * charity id
    */
-  unsigned int charity_id;
+  uint64_t charity_id;
 
   /**
    * charity name
@@ -790,12 +790,12 @@ struct CharitySummary
   /**
    * Max donation amout for this charitiy and year.
    */
-   struct TALER_Amount max;
+   struct TALER_Amount max_per_year;
 
   /**
    * Current donation amount for this charity and year.
    */
-   struct TALER_Amount current;
+   struct TALER_Amount receipts_to_date;
 
 };
 
@@ -838,7 +838,7 @@ struct DONAU_GetCharitiesResponse
       /**
        * Number of charities
        */
-      unsigned int num_charity;
+      uint64_t num_charity;
 
     } ok;
 
@@ -870,9 +870,7 @@ typedef void
  *
  * @param ctx curl context
  * @param url donau base URL
- * @param charity_pub public key of the charity to inspect
- * @param timeout how long to wait for an affirmative reply
- *        (enables long polling if the charity does not yet exist)
+ * @param bearer for authentication
  * @param cb the callback to call when a reply for this request is available
  * @param cb_cls closure for the above callback
  * @return a handle for this request; NULL if the inputs are invalid (i.e.
@@ -882,6 +880,7 @@ struct DONAU_CharitiesGetHandle *
 DONAU_charities_get (
   struct GNUNET_CURL_Context *ctx,
   const char *url,
+  const struct DONAU_BearerToken bearer,
   DONAU_GetCharitiesResponseCallback cb,
   void *cb_cls);
 
@@ -909,7 +908,7 @@ struct CharityHistoryYear
   /**
    * final donation amount at the end of @a year;
    */
-  struct TALER_Amount amount;
+  struct TALER_Amount final_amount;
 };
 
 
@@ -931,12 +930,12 @@ struct Charity
   /**
     * Max donation amout for this charitiy and year.
     */
-  struct TALER_Amount amount;
+  struct TALER_Amount max_per_year;
 
   /**
    * donation history
    */
-  struct CharityHistoryYear *history;
+  struct CharityHistoryYear *donation_history;
 
   /**
    * number of charity history years
@@ -1012,6 +1011,7 @@ typedef void
  *
  * @param ctx curl context
  * @param url donau base URL
+ * @param bearer for authentication
  * @param cb the callback to call when a reply for this request is available
  * @param cb_cls closure for the above callback
  * @return a handle for this request; NULL if the inputs are invalid (i.e.
@@ -1021,6 +1021,7 @@ struct DONAU_CharityGetHandle *
 DONAU_charity_get (
   struct GNUNET_CURL_Context *ctx,
   const char *url,
+  const struct DONAU_BearerToken bearer,
   DONAU_GetCharityResponseCallback cb,
   void *cb_cls);
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]