diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-30 15:56:16 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-30 15:56:16 +0200 |
commit | 342619bf17d389e4305c9ee72b609059706a8023 (patch) | |
tree | 391ff802b3d7389a08947dfb2e2fc816f4013752 /src/include/gnunet_json_lib.h | |
parent | 57636ddf7839aaeedd14c90afcd28b375ec516a6 (diff) | |
download | gnunet-342619bf17d389e4305c9ee72b609059706a8023.tar.gz gnunet-342619bf17d389e4305c9ee72b609059706a8023.zip |
REST/NAMESTORE: rework API
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r-- | src/include/gnunet_json_lib.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index 640ffa35a..c8f09d4e4 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -329,7 +329,9 @@ GNUNET_JSON_spec_rsa_signature (const char *name, | |||
329 | * @return JSON Specification | 329 | * @return JSON Specification |
330 | */ | 330 | */ |
331 | struct GNUNET_JSON_Specification | 331 | struct GNUNET_JSON_Specification |
332 | GNUNET_JSON_spec_gnsrecord_data (struct GNUNET_GNSRECORD_Data **gnsrecord_object); | 332 | GNUNET_JSON_spec_gnsrecord (struct GNUNET_GNSRECORD_Data **rd, |
333 | unsigned int *rd_count, | ||
334 | char **name); | ||
333 | 335 | ||
334 | 336 | ||
335 | /* ****************** Generic generator interface ******************* */ | 337 | /* ****************** Generic generator interface ******************* */ |
@@ -415,8 +417,9 @@ GNUNET_JSON_from_rsa_signature (const struct GNUNET_CRYPTO_RsaSignature *sig); | |||
415 | * @return corresponding JSON encoding | 417 | * @return corresponding JSON encoding |
416 | */ | 418 | */ |
417 | json_t * | 419 | json_t * |
418 | GNUNET_JSON_from_gns_record (const char* rname, | 420 | GNUNET_JSON_from_gnsrecord (const char* rname, |
419 | const struct GNUNET_GNSRECORD_Data *rd); | 421 | const struct GNUNET_GNSRECORD_Data *rd, |
422 | unsigned int rd_count); | ||
420 | 423 | ||
421 | /* ******************* Helpers for MHD upload handling ******************* */ | 424 | /* ******************* Helpers for MHD upload handling ******************* */ |
422 | 425 | ||