[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] 01/11: Walk objects..
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] 01/11: Walk objects.. |
Date: |
Wed, 16 May 2018 10:41:56 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
commit a28e9e0d84bff40994151e6e5a3410c047b1e4bf
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 14 17:22:11 2018 +0200
Walk objects..
regardless of whether they are responses or requests.
---
src/twister/taler-twister-service.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index 66ae9f5..ded29f0 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -879,7 +879,7 @@ static unsigned int
walk_response_object (const char *path,
json_t **parent,
char **target,
- struct HttpRequest *hr)
+ json_t *json)
{
json_t *element;
@@ -896,7 +896,7 @@ walk_response_object (const char *path,
/* Give first nondelim char. */
token = strtok (path_dup, ".");
- if (NULL == (element = hr->json))
+ if (NULL == (element = json))
{
TALER_LOG_ERROR ("Attempting to walk a non JSON response!\n");
return GNUNET_SYSERR;
@@ -973,7 +973,7 @@ modify_object (struct MHD_Connection *con,
if (GNUNET_OK != walk_response_object (modify_path,
&parent,
&target,
- hr))
+ hr->json))
return;
/* At this point, the parent and the target are pointed to. */
@@ -1036,7 +1036,7 @@ flip_object (struct MHD_Connection *con,
if (GNUNET_OK != walk_response_object (flip_path,
&parent,
&target,
- hr))
+ hr->json))
return;
/* here, element is the parent of the element to be deleted. */
@@ -1107,7 +1107,7 @@ delete_object (struct MHD_Connection *con,
if (GNUNET_OK != walk_response_object (delete_path,
&parent,
&target,
- hr))
+ hr->json))
return;
/* here, element is the parent of the element to be deleted. */
@@ -1233,7 +1233,8 @@ create_response (void *cls,
hr->io_len = malformed_size;
}
- /* Upload finished, generate curl request */
+ /* Upload (from the *client*) finished,
+ * generate curl request to the proxied service. */
if (NULL == hr->curl)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-twister] branch master updated (2e773e8 -> 5ac6f8f), gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object into io_buf., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 09/11: debug stmt, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 03/11: Bring difference into the service component., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 08/11: export "flippers" to the internal API., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 02/11: Differentiate between bit-flipping in download and upload., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 01/11: Walk objects..,
gnunet <=
- [GNUnet-SVN] [taler-twister] 10/11: do not use "tmp" buffer for response, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 04/11: cosmetics., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 07/11: debug stmt, gnunet, 2018/05/16