diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
commit | fe947a9704bed14c2fc74b2f2069596fe884cbad (patch) | |
tree | 644efdaa37d692b09f8e279bfe5e8b2ebe81448b /src/include/gnunet_container_lib.h | |
parent | a8b0ab037820f6a9f405be3855ce8d3ebbd4399b (diff) | |
download | gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.tar.gz gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.zip |
better comments
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r-- | src/include/gnunet_container_lib.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index ec190fdc6..b9ce80d95 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -217,13 +217,13 @@ struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_create (void); | |||
217 | /** | 217 | /** |
218 | * Duplicate a MetaData token. | 218 | * Duplicate a MetaData token. |
219 | * | 219 | * |
220 | * @param meta what to duplicate | 220 | * @param md what to duplicate |
221 | * @return duplicate meta-data container | 221 | * @return duplicate meta-data container |
222 | */ | 222 | */ |
223 | struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_duplicate (const | 223 | struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_duplicate (const |
224 | struct | 224 | struct |
225 | GNUNET_CONTAINER_MetaData | 225 | GNUNET_CONTAINER_MetaData |
226 | *meta); | 226 | *md); |
227 | 227 | ||
228 | /** | 228 | /** |
229 | * Free meta data. | 229 | * Free meta data. |
@@ -261,6 +261,7 @@ int GNUNET_CONTAINER_meta_data_insert (struct GNUNET_CONTAINER_MetaData *md, | |||
261 | /** | 261 | /** |
262 | * Remove an item. | 262 | * Remove an item. |
263 | * | 263 | * |
264 | * @param md metadata to manipulate | ||
264 | * @param type type of the item to remove | 265 | * @param type type of the item to remove |
265 | * @param data specific value to remove, NULL to remove all | 266 | * @param data specific value to remove, NULL to remove all |
266 | * entries of the given type | 267 | * entries of the given type |
@@ -373,7 +374,7 @@ enum GNUNET_CONTAINER_MetaDataSerializationOptions | |||
373 | * | 374 | * |
374 | * @param md metadata to serialize | 375 | * @param md metadata to serialize |
375 | * @param target where to write the serialized metadata | 376 | * @param target where to write the serialized metadata |
376 | * @param size maximum number of bytes available | 377 | * @param max maximum number of bytes available |
377 | * @param opt is it ok to just write SOME of the | 378 | * @param opt is it ok to just write SOME of the |
378 | * meta-data to match the size constraint, | 379 | * meta-data to match the size constraint, |
379 | * possibly discarding some data? | 380 | * possibly discarding some data? |
@@ -384,7 +385,7 @@ enum GNUNET_CONTAINER_MetaDataSerializationOptions | |||
384 | ssize_t GNUNET_CONTAINER_meta_data_serialize (const struct | 385 | ssize_t GNUNET_CONTAINER_meta_data_serialize (const struct |
385 | GNUNET_CONTAINER_MetaData *md, | 386 | GNUNET_CONTAINER_MetaData *md, |
386 | char *target, | 387 | char *target, |
387 | size_t size, | 388 | size_t max, |
388 | enum | 389 | enum |
389 | GNUNET_CONTAINER_MetaDataSerializationOptions | 390 | GNUNET_CONTAINER_MetaDataSerializationOptions |
390 | opt); | 391 | opt); |
@@ -958,7 +959,7 @@ void GNUNET_CONTAINER_slist_clear (struct GNUNET_CONTAINER_SList *l); | |||
958 | * Check if a list contains a certain element | 959 | * Check if a list contains a certain element |
959 | * @param l list | 960 | * @param l list |
960 | * @param buf payload buffer to find | 961 | * @param buf payload buffer to find |
961 | * @param lenght of the payload | 962 | * @param len length of the payload (number of bytes in buf) |
962 | */ | 963 | */ |
963 | int GNUNET_CONTAINER_slist_contains (const struct GNUNET_CONTAINER_SList *l, const void *buf, size_t len); | 964 | int GNUNET_CONTAINER_slist_contains (const struct GNUNET_CONTAINER_SList *l, const void *buf, size_t len); |
964 | 965 | ||