anastasis-gtk_action.h (1762B)
1 /* 2 This file is part of anastasis-gtk. 3 Copyright (C) 2020 Anastasis SARL 4 5 Anastasis is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published 7 by the Free Software Foundation; either version 3, or (at your 8 option) any later version. 9 10 Anastasis is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with Anastasis; see the file COPYING. If not, write to the 17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 Boston, MA 02110-1301, USA. 19 */ 20 21 /** 22 * @file src/include/anastasis-gtk_action.h 23 * @brief Definition of redux action result handler 24 * @author Christian Grothoff 25 * @author Dennis Neufeld 26 */ 27 #ifndef ANASTASIS_GTK_ACTION_H 28 #define ANASTASIS_GTK_ACTION_H 29 #include <gnunet-gtk/gnunet_gtk.h> 30 #include <gtk/gtk.h> 31 #include <anastasis/anastasis_service.h> 32 #include <anastasis/anastasis_redux.h> 33 34 35 /** 36 * Are we currently processing an action? 37 */ 38 extern bool AG_in_action; 39 40 /** 41 * Are we currently editing the secret? 42 */ 43 extern bool AG_in_secret_editing; 44 45 /** 46 * Are we currently editing the secret name? 47 */ 48 extern bool AG_in_secret_name_editing; 49 50 /** 51 * Function called with the results of #ANASTASIS_redux_action. 52 * 53 * @param cls closure 54 * @param error_code Error code 55 * @param response new state as result or config information of provider 56 */ 57 void 58 AG_action_cb (void *cls, 59 enum TALER_ErrorCode error_code, 60 json_t *response); 61 62 63 #endif