aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_jsonapi_lib.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-03 09:33:01 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-03 09:33:01 +0000
commit1f79562434de77d978eb87477a9b967023bf50f6 (patch)
treec48f3c928e16d16f6c2844b01f00a9f4fdbd925f /src/include/gnunet_jsonapi_lib.h
parent0cdac9e1cfdc299666cc5b89a43e5148bbcd2d2c (diff)
downloadgnunet-1f79562434de77d978eb87477a9b967023bf50f6.tar.gz
gnunet-1f79562434de77d978eb87477a9b967023bf50f6.zip
- add jsonapi tests
Diffstat (limited to 'src/include/gnunet_jsonapi_lib.h')
-rw-r--r--src/include/gnunet_jsonapi_lib.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/gnunet_jsonapi_lib.h b/src/include/gnunet_jsonapi_lib.h
index 18dfbdf95..1e540f6b6 100644
--- a/src/include/gnunet_jsonapi_lib.h
+++ b/src/include/gnunet_jsonapi_lib.h
@@ -36,8 +36,8 @@ struct GNUNET_JSONAPI_Object;
36 * 36 *
37 * @param jsonapi_obj where to store the jsonapi object 37 * @param jsonapi_obj where to store the jsonapi object
38 */ 38 */
39struct GNUNET_JSONAPI_Specification 39struct GNUNET_JSON_Specification
40GNUNET_JSONAPI_spec_jsonapi (struct GNUNET_JSONAPI_Object **jsonapi_obj); 40GNUNET_JSON_spec_jsonapi (struct GNUNET_JSONAPI_Object **jsonapi_obj);
41 41
42/** 42/**
43 * Create a JSON API resource 43 * Create a JSON API resource
@@ -122,10 +122,12 @@ GNUNET_JSONAPI_object_new ();
122 * Create a JSON API primary data from a string 122 * Create a JSON API primary data from a string
123 * 123 *
124 * @param data the string of the JSON API data 124 * @param data the string of the JSON API data
125 * @return a new JSON API resource or NULL on error. 125 * @param Pointer where to store new jsonapi Object.
126 * @return GNUNET_OK on success
126 */ 127 */
127struct GNUNET_JSONAPI_Object* 128int
128GNUNET_JSONAPI_object_parse (const char* data); 129GNUNET_JSONAPI_object_parse (const char* data,
130 struct GNUNET_JSONAPI_Object** obj);
129 131
130 132
131/** 133/**