aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-01 10:44:49 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-01 10:44:49 +0000
commit13a8e0fb8db860d11ae46d366924b0bfc82be21a (patch)
treec87b98635cc4b35c5a536786b537ae18a98e1fab /src/include/gnunet_namestore_service.h
parentc93c582dfed6b36d507308a2b677753f37b1d31b (diff)
downloadgnunet-13a8e0fb8db860d11ae46d366924b0bfc82be21a.tar.gz
gnunet-13a8e0fb8db860d11ae46d366924b0bfc82be21a.zip
- comments
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h24
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 */
367size_t 373size_t
368GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, 374GNUNET_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 */
374ssize_t 387ssize_t
375GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, 388GNUNET_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 */
388int 404int