aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-13 08:50:25 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-13 08:50:25 +0200
commit4a8fb418d75b302ca578c5c1dec460ae9192112c (patch)
tree96f7a08b2b882bb0d20d44c9bd2cfc466cf5943f /src/include
parentc55be23e812f4add56711e1589d7aa5c9474917c (diff)
implement more sanity checks
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 4dcf6f8f8..5f70bf65e 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -305,6 +305,18 @@ TALER_CONFIG_currency_specs_to_json (
/**
+ * Check that @a map contains a valid currency scale
+ * map that maps integers from [-12,24] to currency
+ * symbols given as strings.
+ *
+ * @param map map to check
+ * @return #GNUNET_OK if @a map is valid
+ */
+enum GNUNET_GenericReturnValue
+TALER_check_currency_scale_map (const json_t *map);
+
+
+/**
* Allow user to specify an amount on the command line.
*
* @param shortName short name of the option