diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-29 14:23:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-29 14:23:29 +0200 |
commit | bcd29d418e3be72ecfa365f99dd1ca19f6eb9aa4 (patch) | |
tree | 561bc973c5716039fb3b2915bbf46ba30231ee5b /src/backend/taler-merchant-httpd.h | |
parent | c088c1d67f71b1eb2c355cf864b307aaf0cabff5 (diff) | |
download | merchant-bcd29d418e3be72ecfa365f99dd1ca19f6eb9aa4.tar.gz merchant-bcd29d418e3be72ecfa365f99dd1ca19f6eb9aa4.tar.bz2 merchant-bcd29d418e3be72ecfa365f99dd1ca19f6eb9aa4.zip |
fixing misc. FIXMEs, some style issues, and mostly DB return value handling towards addressing #5010
Diffstat (limited to 'src/backend/taler-merchant-httpd.h')
-rw-r--r-- | src/backend/taler-merchant-httpd.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.h b/src/backend/taler-merchant-httpd.h index 0526ad20..c67a9713 100644 --- a/src/backend/taler-merchant-httpd.h +++ b/src/backend/taler-merchant-httpd.h @@ -269,6 +269,12 @@ extern struct TALER_MERCHANTDB_Plugin *db; extern struct GNUNET_TIME_Relative wire_transfer_delay; /** + * If the frontend does NOT specify a payment deadline, how long should + * offers we make be valid by default? + */ +extern struct GNUNET_TIME_Relative default_pay_deadline; + +/** * Kick MHD to run now, to be called after MHD_resume_connection(). * Basically, we need to explicitly resume MHD's event loop whenever * we made progress serving a request. This function re-schedules @@ -287,4 +293,21 @@ struct MerchantInstance * TMH_lookup_instance (const char *name); +/** + * Extract merchant instance from the given JSON + * + * @param json the JSON to inspect; it is not required to + * comply with any particular format. It will only be checked + * if the field "instance" is there. + * @return a pointer to a #struct MerchantInstance. This will be + * the 'default' merchant if the frontend did not specif any + * "instance" field. The user should not care to free the returned + * value, as it is taken from a global array that will be freed + * by the general shutdown routine. NULL if the frontend specified + * a wrong instance + */ +struct MerchantInstance * +TMH_lookup_instance_json (struct json_t *json); + + #endif |