diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-01 10:44:49 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-01 10:44:49 +0000 |
commit | 13a8e0fb8db860d11ae46d366924b0bfc82be21a (patch) | |
tree | c87b98635cc4b35c5a536786b537ae18a98e1fab /src/include/gnunet_namestore_service.h | |
parent | c93c582dfed6b36d507308a2b677753f37b1d31b (diff) | |
download | gnunet-13a8e0fb8db860d11ae46d366924b0bfc82be21a.tar.gz gnunet-13a8e0fb8db860d11ae46d366924b0bfc82be21a.zip |
- comments
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 5616225df..9b0171970 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -363,6 +363,12 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | |||
363 | /** | 363 | /** |
364 | * Calculate how many bytes we will need to serialize the given | 364 | * Calculate how many bytes we will need to serialize the given |
365 | * records. | 365 | * records. |
366 | * | ||
367 | * @param rd_count number of records in the rd array | ||
368 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | ||
369 | * | ||
370 | * @return the required size to serialize | ||
371 | * | ||
366 | */ | 372 | */ |
367 | size_t | 373 | size_t |
368 | GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, | 374 | GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, |
@@ -370,6 +376,13 @@ GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, | |||
370 | 376 | ||
371 | /** | 377 | /** |
372 | * Serialize the given records to the given destination buffer. | 378 | * Serialize the given records to the given destination buffer. |
379 | * | ||
380 | * @param rd_cound number of records in the rd array | ||
381 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | ||
382 | * @param dest_size size of the destination array | ||
383 | * @param dest where to write the result | ||
384 | * | ||
385 | * @return the size of serialized records | ||
373 | */ | 386 | */ |
374 | ssize_t | 387 | ssize_t |
375 | GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, | 388 | GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, |
@@ -379,10 +392,13 @@ GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, | |||
379 | 392 | ||
380 | 393 | ||
381 | /** | 394 | /** |
382 | * @param rd_count expected number of records in 'src' | 395 | * Deserialize the given records to the given destination. |
383 | * @param dest array of 'rd_count' entries for storing record data; | 396 | * |
384 | * 'data' values in 'dest' will point into 'src' and will thus | 397 | * @param len size of the serialized record data |
385 | * become invalid if 'src' is modified | 398 | * @param src the serialized record data |
399 | * @param rd_cound number of records in the rd array | ||
400 | * @param dest where to put the data | ||
401 | * | ||
386 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 402 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
387 | */ | 403 | */ |
388 | int | 404 | int |