gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 01/03: fix


From: gnunet
Subject: [taler-anastasis] 01/03: fix
Date: Wed, 14 Oct 2020 15:42:59 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 07cabf79ec48de65abf4146ed17c13a7dec5889c
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Wed Oct 14 15:35:26 2020 +0200

    fix
---
 src/include/anastasis_redux.h          | 44 ----------------------------------
 src/lib/anastasis_api_backup_redux.c   | 12 +++++-----
 src/lib/anastasis_api_recovery_redux.c | 12 +++++-----
 src/lib/anastasis_api_redux.c          | 24 +++++++++----------
 src/lib/anastasis_api_redux.h          | 44 ++++++++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+), 68 deletions(-)

diff --git a/src/include/anastasis_redux.h b/src/include/anastasis_redux.h
index 5913453..b11ba9c 100644
--- a/src/include/anastasis_redux.h
+++ b/src/include/anastasis_redux.h
@@ -192,54 +192,10 @@ typedef void
 struct ANASTASIS_ReduxAction;
 
 
-/**
- * Operates on a backup state depending on given #ANASTASIS_BackupState
- * and #ANASTASIS_BackupAction. The new #ANASTASIS_BackupState is returned
- * by a callback function.
- * This function can do network access to talk to anastasis service providers.
- *
- * @param ctx the CURL context used to connect to the backend
- * @param[in,out] state input/output state (to be modified)
- * @param action what action to perform
- * @param arguments data for the @a action
- * @param cb function to call with the result
- * @param cb_cls closure for @a cb
- */
-struct ANASTASIS_ReduxAction *
-ANASTASIS_backup_action (struct GNUNET_CURL_Context *ctx,
-                         json_t *state,
-                         const char *action,
-                         const json_t *arguments,
-                         ANASTASIS_ActionCallback cb,
-                         void *cb_cls);
-
-
 void
 ANASTASIS_action_cancel (struct ANASTASIS_ReduxAction *ra);
 
 
-/**
- * Operates on a recovery state depending on given #ANASTASIS_RecoveryState
- * and #ANASTASIS_RecoveryAction. The new #ANASTASIS_RecoveryState is returned
- * by a callback function.
- * This function can do network access to talk to anastasis service providers.
- *
- * @param ctx the CURL context used to connect to the backend
- * @param[in,out] state input/output state (to be modified)
- * @param action what action to perform
- * @param arguments data for the @a action
- * @param cb function to call with the result
- * @param cb_cls closure for @a cb
- */
-struct ANASTASIS_ReduxAction *
-ANASTASIS_recovery_action (struct GNUNET_CURL_Context *ctx,
-                           json_t *state,
-                           const char *action,
-                           const json_t *arguments,
-                           ANASTASIS_ActionCallback cb,
-                           void *cb_cls);
-
-
 /**
  * Operates on a state depending on given #ANASTASIS_BackupState
  * or #ANASTASIS_RecoveryState and #ANASTASIS_BackupAction or
diff --git a/src/lib/anastasis_api_backup_redux.c 
b/src/lib/anastasis_api_backup_redux.c
index 30ed18d..c6de773 100644
--- a/src/lib/anastasis_api_backup_redux.c
+++ b/src/lib/anastasis_api_backup_redux.c
@@ -520,12 +520,12 @@ add_policy (json_t *state,
  * @param cb_cls closure for @a cb
  */
 void
-ANASTASIS_backup_action (struct GNUNET_CURL_Context *ctx,
-                         json_t *state,
-                         const char *action,
-                         const json_t *arguments,
-                         ANASTASIS_ActionCallback cb,
-                         void *cb_cls)
+ANASTASIS_backup_action_ (struct GNUNET_CURL_Context *ctx,
+                          json_t *state,
+                          const char *action,
+                          const json_t *arguments,
+                          ANASTASIS_ActionCallback cb,
+                          void *cb_cls)
 {
   struct Dispatcher
   {
diff --git a/src/lib/anastasis_api_recovery_redux.c 
b/src/lib/anastasis_api_recovery_redux.c
index a605ded..6b7621c 100644
--- a/src/lib/anastasis_api_recovery_redux.c
+++ b/src/lib/anastasis_api_recovery_redux.c
@@ -150,12 +150,12 @@ ANASTASIS_recovery_start (const struct 
GNUNET_CONFIGURATION_Handle *cfg)
  * @param cb_cls closure for @a cb
  */
 void
-ANASTASIS_recovery_action (struct GNUNET_CURL_Context *ctx,
-                           json_t *state,
-                           const char *action,
-                           const json_t *arguments,
-                           ANASTASIS_ActionCallback cb,
-                           void *cb_cls)
+ANASTASIS_recovery_action_ (struct GNUNET_CURL_Context *ctx,
+                            json_t *state,
+                            const char *action,
+                            const json_t *arguments,
+                            ANASTASIS_ActionCallback cb,
+                            void *cb_cls)
 {
   struct Dispatcher
   {
diff --git a/src/lib/anastasis_api_redux.c b/src/lib/anastasis_api_redux.c
index fef945d..4f2ef7f 100644
--- a/src/lib/anastasis_api_redux.c
+++ b/src/lib/anastasis_api_redux.c
@@ -884,21 +884,21 @@ ANASTASIS_redux_action (const json_t *state,
     }
     if (recovery_mode)
     {
-      ret = ANASTASIS_recovery_action (ctx,
-                                       new_state,
-                                       action,
-                                       arguments,
-                                       cb,
-                                       NULL);
+      ret = ANASTASIS_recovery_action_ (ctx,
+                                        new_state,
+                                        action,
+                                        arguments,
+                                        cb,
+                                        NULL);
     }
     else
     {
-      ret = ANASTASIS_backup_action (ctx,
-                                     new_state,
-                                     action,
-                                     arguments,
-                                     cb,
-                                     NULL);
+      ret = ANASTASIS_backup_action_ (ctx,
+                                      new_state,
+                                      action,
+                                      arguments,
+                                      cb,
+                                      NULL);
     }
     json_decref (new_state);
     return ret;
diff --git a/src/lib/anastasis_api_redux.h b/src/lib/anastasis_api_redux.h
index 217478c..c1344a6 100644
--- a/src/lib/anastasis_api_redux.h
+++ b/src/lib/anastasis_api_redux.h
@@ -18,6 +18,50 @@ json_t *
 ANASTASIS_redux_countries_init_ (void);
 
 
+/**
+ * Operates on a recovery state depending on given #ANASTASIS_RecoveryState
+ * and #ANASTASIS_RecoveryAction. The new #ANASTASIS_RecoveryState is returned
+ * by a callback function.
+ * This function can do network access to talk to anastasis service providers.
+ *
+ * @param ctx the CURL context used to connect to the backend
+ * @param[in,out] state input/output state (to be modified)
+ * @param action what action to perform
+ * @param arguments data for the @a action
+ * @param cb function to call with the result
+ * @param cb_cls closure for @a cb
+ */
+struct ANASTASIS_ReduxAction *
+ANASTASIS_recovery_action_ (struct GNUNET_CURL_Context *ctx,
+                            json_t *state,
+                            const char *action,
+                            const json_t *arguments,
+                            ANASTASIS_ActionCallback cb,
+                            void *cb_cls);
+
+
+/**
+ * Operates on a backup state depending on given #ANASTASIS_BackupState
+ * and #ANASTASIS_BackupAction. The new #ANASTASIS_BackupState is returned
+ * by a callback function.
+ * This function can do network access to talk to anastasis service providers.
+ *
+ * @param ctx the CURL context used to connect to the backend
+ * @param[in,out] state input/output state (to be modified)
+ * @param action what action to perform
+ * @param arguments data for the @a action
+ * @param cb function to call with the result
+ * @param cb_cls closure for @a cb
+ */
+struct ANASTASIS_ReduxAction *
+ANASTASIS_backup_action_ (struct GNUNET_CURL_Context *ctx,
+                          json_t *state,
+                          const char *action,
+                          const json_t *arguments,
+                          ANASTASIS_ActionCallback cb,
+                          void *cb_cls);
+
+
 /**
  * Generic container for an action with asynchronous activities.
  */

-- 
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]