summaryrefslogtreecommitdiff
path: root/src/backend/taler-mint-httpd_parsing.h
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-03 17:32:29 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-03 17:32:29 +0100
commit6e80a32260f1edc4c36e758749dedaf1622cae62 (patch)
tree368100094ff1d8961c86ba1ee6717ac178c318d8 /src/backend/taler-mint-httpd_parsing.h
parent2d198327bc71954ff4d78042f67612a3a3b40361 (diff)
downloadmerchant-6e80a32260f1edc4c36e758749dedaf1622cae62.tar.gz
merchant-6e80a32260f1edc4c36e758749dedaf1622cae62.tar.bz2
merchant-6e80a32260f1edc4c36e758749dedaf1622cae62.zip
Adding:
- new JNC for fetching strings within JSONs (tested, and presumably to be included into the mint codebase). - error handling if the the wallet gives (inside a deposit permission) a wrong denomination key for a right mint Fixing minor issues.
Diffstat (limited to 'src/backend/taler-mint-httpd_parsing.h')
-rw-r--r--src/backend/taler-mint-httpd_parsing.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backend/taler-mint-httpd_parsing.h b/src/backend/taler-mint-httpd_parsing.h
index 0e959761..dae65092 100644
--- a/src/backend/taler-mint-httpd_parsing.h
+++ b/src/backend/taler-mint-httpd_parsing.h
@@ -271,7 +271,18 @@ TMH_PARSE_member_variable (const char *field,
void **ptr,
size_t *ptr_size);
-
+/**
+ * Generate line in parser specification for string. The returned
+ * string is already nul-terminated internally by JSON, so no length
+ * information is provided. The string will live as long as the containg
+ * JSON will, and must not be freed by the user
+ * @param field name of the field
+ * @param[out] pointer to the string
+ * @return corresponding field spec
+ */
+struct TMH_PARSE_FieldSpecification
+TMH_PARSE_member_string (const char *field,
+ char **out);
/**
* Generate line in parser specification for 64-bit integer
* given as an integer in JSON.