diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/anastasis_eufin_lib.h | 7 | ||||
-rw-r--r-- | src/include/anastasis_util_lib.h | 7 | ||||
-rw-r--r-- | src/include/platform.h | 27 |
3 files changed, 37 insertions, 4 deletions
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 <jansson.h> #include <gnunet/gnunet_curl_lib.h> #include <taler/taler_util.h> -#include <taler/taler_error_codes.h> /** @@ -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 @@ -37,6 +37,13 @@ ANASTASIS_project_data_default (void); /** + * Initialize libanastasisutil. + */ +void +ANASTASIS_OS_init (void); + + +/** * Handle for the child management */ struct ANASTASIS_ChildWaitHandle; 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 |