gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-twister] 03/34: get path parsing to compile.


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] 03/34: get path parsing to compile.
Date: Sat, 17 Mar 2018 01:57:54 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository twister.

commit 8a3bf1c5404e839b1abac1f81ec2a595a0ee200a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 6 16:29:30 2018 +0100

    get path parsing to compile.
---
 src/twister/taler-twister-service.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index 8c4818a..07d703f 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1087,6 +1087,8 @@ create_response (void *cls,
   {
     json_t *parsed_response;
     json_error_t error;
+    char *token_path;
+    char *mod_response;
 
     MHD_destroy_response (hr->response);
 
@@ -1104,7 +1106,24 @@ create_response (void *cls,
         (strlen (error_msg),
          error_msg,
          MHD_RESPMEM_PERSISTENT);
+      /* Need a code that doesn't clash with Taler's. */
+      hr->response_code = MHD_HTTP_GONE;
     }
+  
+    GNUNET_assert (NULL != strtok (delete_path, "."));
+    while (NULL != (token_path = strtok (NULL, ".")))
+    {
+      /* fill with logic */
+    
+    }
+
+    mod_response = json_dumps (parsed_response, JSON_COMPACT);
+    json_decref (parsed_response);
+
+    hr->response = MHD_create_response_from_buffer
+      (strlen (mod_response),
+       mod_response,
+       MHD_RESPMEM_MUST_COPY);
   }
 
   return MHD_queue_response (con,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]