anastasis-gtk_action.h (1727B)
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 <gtk/gtk.h> 30 #include <anastasis/anastasis_service.h> 31 #include <anastasis/anastasis_redux.h> 32 33 34 /** 35 * Are we currently processing an action? 36 */ 37 extern bool AG_in_action; 38 39 /** 40 * Are we currently editing the secret? 41 */ 42 extern bool AG_in_secret_editing; 43 44 /** 45 * Are we currently editing the secret name? 46 */ 47 extern bool AG_in_secret_name_editing; 48 49 /** 50 * Function called with the results of #ANASTASIS_redux_action. 51 * 52 * @param cls closure 53 * @param error_code Error code 54 * @param response new state as result or config information of provider 55 */ 56 void 57 AG_action_cb (void *cls, 58 enum TALER_ErrorCode error_code, 59 json_t *response); 60 61 62 #endif