From 5f288737d51441694b2c25a6e6591cf2735b0730 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 18 Aug 2021 17:37:58 +0200 Subject: -get anastasis-helper-authorization-iban to build --- src/include/anastasis_eufin_lib.h | 7 +++---- src/include/anastasis_util_lib.h | 7 +++++++ src/include/platform.h | 27 +++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/anastasis_eufin_lib.h b/src/include/anastasis_eufin_lib.h index 38eb61d..daff98a 100644 --- a/src/include/anastasis_eufin_lib.h +++ b/src/include/anastasis_eufin_lib.h @@ -22,10 +22,11 @@ #ifndef ANASTASIS_EUFIN_LIB_H #define ANASTASIS_EUFIN_LIB_H +#define GNU_TALER_ERROR_CODES_H 1 +#include "anastasis_error_codes.h" #include #include #include -#include /** @@ -145,7 +146,6 @@ struct ANASTASIS_EUFIN_CreditDetails * @param ec detailed error code * @param serial_id monotonically increasing counter corresponding to the transaction * @param details details about the wire transfer - * @param json detailed response from the HTTPD, or NULL if reply was not in JSON * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration */ typedef enum GNUNET_GenericReturnValue @@ -154,8 +154,7 @@ typedef enum GNUNET_GenericReturnValue unsigned int http_status, enum TALER_ErrorCode ec, uint64_t serial_id, - const struct ANASTASIS_EUFIN_CreditDetails *details, - const json_t *json); + const struct ANASTASIS_EUFIN_CreditDetails *details); /** diff --git a/src/include/anastasis_util_lib.h b/src/include/anastasis_util_lib.h index 3d380a3..e780d82 100644 --- a/src/include/anastasis_util_lib.h +++ b/src/include/anastasis_util_lib.h @@ -36,6 +36,13 @@ const struct GNUNET_OS_ProjectData * ANASTASIS_project_data_default (void); +/** + * Initialize libanastasisutil. + */ +void +ANASTASIS_OS_init (void); + + /** * Handle for the child management */ diff --git a/src/include/platform.h b/src/include/platform.h index 31aa7b9..7667460 100644 --- a/src/include/platform.h +++ b/src/include/platform.h @@ -39,6 +39,33 @@ #define VERBOSE(cmd) do { break; } while (0) #endif + +/* LSB-style exit status codes */ +#ifndef EXIT_INVALIDARGUMENT +#define EXIT_INVALIDARGUMENT 2 +#endif + +#ifndef EXIT_NOTIMPLEMENTED +#define EXIT_NOTIMPLEMENTED 3 +#endif + +#ifndef EXIT_NOPERMISSION +#define EXIT_NOPERMISSION 4 +#endif + +#ifndef EXIT_NOTINSTALLED +#define EXIT_NOTINSTALLED 5 +#endif + +#ifndef EXIT_NOTCONFIGURED +#define EXIT_NOTCONFIGURED 6 +#endif + +#ifndef EXIT_NOTRUNNING +#define EXIT_NOTRUNNING 7 +#endif + + /* Include the features available for GNU source */ #define _GNU_SOURCE -- cgit v1.2.3