gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 01/02: update state machine


From: gnunet
Subject: [taler-anastasis] 01/02: update state machine
Date: Sun, 07 Mar 2021 23:16:52 +0100

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

grothoff pushed a commit to branch master
in repository anastasis.

commit c575b47ce902c64ee3e316791cee9e9a6096d9e6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 7 23:14:29 2021 +0100

    update state machine
---
 src/reducer/anastasis_api_redux.c | 35 +++++------------------------------
 1 file changed, 5 insertions(+), 30 deletions(-)

diff --git a/src/reducer/anastasis_api_redux.c 
b/src/reducer/anastasis_api_redux.c
index 10829c8..6628dac 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -1081,31 +1081,6 @@ select_country (json_t *state,
 }
 
 
-/**
- * DispatchHandler/Callback function which is called for a
- * "unselect_country" action.
- *
- * @param state state to operate on
- * @param arguments arguments to use for operation on state
- * @param cb callback to call during/after operation
- * @param cb_cls callback closure
- * @return NULL
- */
-static struct ANASTASIS_ReduxAction *
-unselect_country (json_t *state,
-                  const json_t *arguments,
-                  ANASTASIS_ActionCallback cb,
-                  void *cb_cls)
-{
-  redux_transition (state,
-                    ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING);
-  cb (cb_cls,
-      TALER_EC_NONE,
-      state);
-  return NULL;
-}
-
-
 /**
  * DispatchHandler/Callback function which is called for a
  * "unselect_continent" action.
@@ -1471,6 +1446,11 @@ ANASTASIS_redux_action (const json_t *state,
       "unselect_continent",
       &unselect_continent
     },
+    {
+      ANASTASIS_GENERIC_STATE_CONTINENT_SELECTING,
+      "select_country",
+      &select_country
+    },
     {
       ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
       "select_continent",
@@ -1481,11 +1461,6 @@ ANASTASIS_redux_action (const json_t *state,
       "unselect_continent",
       &unselect_continent
     },
-    {
-      ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
-      "unselect_country",
-      &unselect_country
-    },
     {
       ANASTASIS_GENERIC_STATE_USER_ATTRIBUTES_COLLECTING,
       "enter_user_attributes",

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