]> wimlib.net Git - wimlib/commitdiff
Function doc updates
authorEric Biggers <ebiggers3@gmail.com>
Thu, 25 Oct 2012 21:59:48 +0000 (16:59 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 25 Oct 2012 21:59:48 +0000 (16:59 -0500)
src/wimlib.h

index 98651debd9eea4f2171c95c3a3f1ea1fb3c4c42b..2b6f8f2499daa967bf1fb271e534a04bef1bde93 100644 (file)
@@ -778,8 +778,11 @@ extern const char *wimlib_get_error_string(enum wimlib_error_code code);
  *     The number of the image, numbered starting at 1.
  *
  * @return
  *     The number of the image, numbered starting at 1.
  *
  * @return
- *     The description of the image, or @c NULL if there is no such image, or @c NULL
- *     if the specified image has no description.
+ *     The description of the image, or @c NULL if there is no such image, or
+ *     @c NULL if the specified image has no description.  The description
+ *     string is in library-internal memory and may not be modified or freed;
+ *     in addition, the string will become invalid if the description of the
+ *     image is changed, the image is deleted, or the ::WIMStruct is destroyed.
  */
 extern const char *wimlib_get_image_description(const WIMStruct *wim, int image);
 
  */
 extern const char *wimlib_get_image_description(const WIMStruct *wim, int image);
 
@@ -793,7 +796,10 @@ extern const char *wimlib_get_image_description(const WIMStruct *wim, int image)
  *     The number of the image, numbered starting at 1.
  *
  * @return
  *     The number of the image, numbered starting at 1.
  *
  * @return
- *     The name of the image, or @c NULL if there is no such image.
+ *     The name of the image, or @c NULL if there is no such image.  The name
+ *     string is in library-internal memory and may not be modified or freed;
+ *     in addition, the string will become invalid if the name of the image is
+ *     changed, the image is deleted, or the ::WIMStruct is destroyed.
  */
 extern const char *wimlib_get_image_name(const WIMStruct *wim, int image);
 
  */
 extern const char *wimlib_get_image_name(const WIMStruct *wim, int image);
 
@@ -844,8 +850,9 @@ extern bool wimlib_has_integrity_table(const WIMStruct *wim);
  *     The name to check.
  *
  * @return
  *     The name to check.
  *
  * @return
- *     @c true if there is already an image in @a wim named @a name; @c
- *     false if there is no image named @a name in @a wim.
+ *     @c true if there is already an image in @a wim named @a name; @c false
+ *     if there is no image named @a name in @a wim.  (If @a name is @c NULL,
+ *     @c false is returned.)
  */
 extern bool wimlib_image_name_in_use(const WIMStruct *wim, const char *name);
 
  */
 extern bool wimlib_image_name_in_use(const WIMStruct *wim, const char *name);