diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.h')
-rw-r--r-- | src/mint/taler-mint-httpd_parsing.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.h b/src/mint/taler-mint-httpd_parsing.h index 59c31f595..5f5f35dfc 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h | |||
@@ -209,9 +209,8 @@ TALER_MINT_release_parsed_data (struct GNUNET_MINT_ParseFieldSpec *spec); | |||
209 | * Generate line in parser specification for variable-size value. | 209 | * Generate line in parser specification for variable-size value. |
210 | * | 210 | * |
211 | * @param field name of the field | 211 | * @param field name of the field |
212 | * @param value where to store the value | ||
213 | */ | 212 | */ |
214 | #define TALER_MINT_PARSE_VARIABLE(field,value) { field, &value, 0, 0 } | 213 | #define TALER_MINT_PARSE_VARIABLE(field) { field, NULL, 0, 0 } |
215 | 214 | ||
216 | /** | 215 | /** |
217 | * Generate line in parser specification indicating the end of the spec. | 216 | * Generate line in parser specification indicating the end of the spec. |
@@ -220,7 +219,7 @@ TALER_MINT_release_parsed_data (struct GNUNET_MINT_ParseFieldSpec *spec); | |||
220 | 219 | ||
221 | 220 | ||
222 | /** | 221 | /** |
223 | * Extraxt base32crockford encoded data from request. | 222 | * Extraxt fixed-size base32crockford encoded data from request. |
224 | * | 223 | * |
225 | * Queues an error response to the connection if the parameter is missing or | 224 | * Queues an error response to the connection if the parameter is missing or |
226 | * invalid. | 225 | * invalid. |
@@ -241,6 +240,28 @@ TALER_MINT_mhd_request_arg_data (struct MHD_Connection *connection, | |||
241 | size_t out_size); | 240 | size_t out_size); |
242 | 241 | ||
243 | 242 | ||
243 | /** | ||
244 | * Extraxt variable-size base32crockford encoded data from request. | ||
245 | * | ||
246 | * Queues an error response to the connection if the parameter is missing | ||
247 | * or the encoding is invalid. | ||
248 | * | ||
249 | * @param connection the MHD connection | ||
250 | * @param param_name the name of the parameter with the key | ||
251 | * @param[out] out_data pointer to allocate buffer and store the result | ||
252 | * @param[out] out_size set to the size of the buffer allocated in @a out_data | ||
253 | * @return | ||
254 | * #GNUNET_YES if the the argument is present | ||
255 | * #GNUNET_NO if the argument is absent or malformed | ||
256 | * #GNUNET_SYSERR on internal error (error response could not be sent) | ||
257 | */ | ||
258 | int | ||
259 | TALER_MINT_mhd_request_var_arg_data (struct MHD_Connection *connection, | ||
260 | const char *param_name, | ||
261 | void **out_data, | ||
262 | size_t *out_size); | ||
263 | |||
264 | |||
244 | 265 | ||
245 | 266 | ||
246 | #endif /* TALER_MICROHTTPD_LIB_H_ */ | 267 | #endif /* TALER_MICROHTTPD_LIB_H_ */ |