frosix_api.h (1433B)
1 /* 2 This file is part of Frosix 3 Copyright (C) 2020, 2021 Anastasis SARL 4 5 Frosix is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 Frosix is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 Frosix; see the file COPYING.GPL. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file libfrosix/frosix_api.h 18 * @brief anastasis reducer api, internal data structures 19 * @author Christian Grothoff 20 * @author Dominik Meister 21 * @author Dennis Neufeld 22 */ 23 #ifndef FROSIX_API_REDUX_H 24 #define FROSIX_API_REDUX_H 25 26 #include <jansson.h> 27 28 29 /** 30 * CURL context to be used by all operations. 31 */ 32 extern struct GNUNET_CURL_Context *FROSIX_REDUX_ctx_; 33 34 35 /** 36 * Function to return a json error response. 37 * 38 * @param cb callback to give error to 39 * @param cb_cls callback closure 40 * @param ec error code 41 * @param detail error detail 42 */ 43 void 44 FROSIX_redux_fail_ (FROSIX_ActionCallback cb, 45 void *cb_cls, 46 enum TALER_ErrorCode ec, 47 const char *detail); 48 49 50 51 52 #endif