aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-20 21:11:20 +0200
committerChristian Grothoff <christian@grothoff.org>2016-10-20 21:11:20 +0200
commit63c5706b64a5fe2989514c5f18e2926b91e420de (patch)
tree2c8ebb49529a3b92bad904459f4929bcb805d3d5 /src/include
parent7341b21fa3d6328f2c85747824899be54668e891 (diff)
remove redundant exchange_api_common.h header
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchange_service.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index d1f6dbbe3..1629ddcfa 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1262,4 +1262,16 @@ TALER_EXCHANGE_verify_coin_history (const char *currency,
json_t *history,
struct TALER_Amount *total);
+
+/**
+ * Extract the Taler error code from the given @a json object.
+ * Note that #TALER_EC_NONE is returned if no "code" is present.
+ *
+ * @param json response to extract the error code from
+ * @return the "code" value from @a json
+ */
+enum TALER_ErrorCode
+TALER_EXCHANGE_json_get_error_code (const json_t *json);
+
+
#endif /* _TALER_EXCHANGE_SERVICE_H */