diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-05-03 09:33:01 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-05-03 09:33:01 +0000 |
commit | 1f79562434de77d978eb87477a9b967023bf50f6 (patch) | |
tree | c48f3c928e16d16f6c2844b01f00a9f4fdbd925f /src/include/gnunet_jsonapi_lib.h | |
parent | 0cdac9e1cfdc299666cc5b89a43e5148bbcd2d2c (diff) | |
download | gnunet-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.h | 12 |
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 | */ |
39 | struct GNUNET_JSONAPI_Specification | 39 | struct GNUNET_JSON_Specification |
40 | GNUNET_JSONAPI_spec_jsonapi (struct GNUNET_JSONAPI_Object **jsonapi_obj); | 40 | GNUNET_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 | */ |
127 | struct GNUNET_JSONAPI_Object* | 128 | int |
128 | GNUNET_JSONAPI_object_parse (const char* data); | 129 | GNUNET_JSONAPI_object_parse (const char* data, |
130 | struct GNUNET_JSONAPI_Object** obj); | ||
129 | 131 | ||
130 | 132 | ||
131 | /** | 133 | /** |