summaryrefslogtreecommitdiff
path: root/src/wire
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-08 12:44:40 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-08 12:44:40 +0200
commit5e36e520a5a9d1461cf0efaee777238a46f1890b (patch)
tree1bc5d9816bbdae9c654634ec88de25184255a26b /src/wire
parent18a020dd0241fbb7deead15b96d5f5fed9f1b9b5 (diff)
downloadexchange-5e36e520a5a9d1461cf0efaee777238a46f1890b.tar.gz
exchange-5e36e520a5a9d1461cf0efaee777238a46f1890b.tar.bz2
exchange-5e36e520a5a9d1461cf0efaee777238a46f1890b.zip
updates to distinguish clearly between wtid and json transfer details
Diffstat (limited to 'src/wire')
-rw-r--r--src/wire/plugin_wire_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index 0c14190e7..6f0acce4f 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -553,11 +553,13 @@ test_prepare_wire_transfer (void *cls,
* @param cls closure with the `struct TALER_WIRE_ExecuteHandle`
* @param http_status HTTP response code, #MHD_HTTP_OK (200) for successful status request
* 0 if the bank's reply is bogus (fails to follow the protocol)
+ * @param serial_id unique ID of the wire transfer in the bank's records; UINT64_MAX on error
* @param json detailed response from the HTTPD, or NULL if reply was not JSON
*/
static void
execute_cb (void *cls,
unsigned int http_status,
+ uint64_t serial_id,
const json_t *json)
{
struct TALER_WIRE_ExecuteHandle *eh = cls;
@@ -585,6 +587,7 @@ execute_cb (void *cls,
http_status);
eh->cc (eh->cc_cls,
(MHD_HTTP_OK == http_status) ? GNUNET_OK : GNUNET_SYSERR,
+ serial_id,
(MHD_HTTP_OK == http_status) ? NULL : s);
GNUNET_free (s);
GNUNET_free (eh);
@@ -825,7 +828,7 @@ bhist_cb (void *cls,
&bserial_id,
sizeof (bserial_id),
details)) )
- whh->hres_cb = NULL;
+ whh->hres_cb = NULL;
}
else
{