From: Samuel Just Date: Tue, 29 May 2012 17:30:51 +0000 (-0700) Subject: librados.h: update rados_object_list_next documentation for key/locator X-Git-Tag: v0.48argonaut~151^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f953c4c0b0ba69342cab52243c1b73987f7f94f6;p=ceph.git librados.h: update rados_object_list_next documentation for key/locator *entry and *key don't need to be freed, and are only valid until the next call to rados_objects_list_*. Signed-off-by: Samuel Just --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index c401dba25304..9f723f79394b 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -601,9 +601,11 @@ int rados_objects_list_open(rados_ioctx_t io, rados_list_ctx_t *ctx); /** * Get the next object name and locator in the pool * + * *entry and *key are valid until next call to rados_objects_list_* + * * @param ctx iterator marking where you are in the listing - * @param entry where to store the name of the entry (caller must free) - * @param key where to store the object locator (set to NULL to ignore) (caller must free) + * @param entry where to store the name of the entry + * @param key where to store the object locator (set to NULL to ignore) * @returns 0 on success, negative error code on failure * @returns -ENOENT when there are no more objects to list */