Also, added docs for a few functions that were missing them.
Fixes issue #18.
[skip ci]
/*! Return a short, localized, textual name for the given byte order.
* \param[in] order byte order
- * \return localized textual name of the byte order
+ * \return localized textual name of the byte order, or NULL if unknown
*/
const char *exif_byte_order_get_name (ExifByteOrder order);
};
/* Lifecycle */
+
+/*! Reserve memory for and initialize a new #ExifContent.
+ *
+ * \return new allocated #ExifContent, or NULL on error
+ *
+ * \see exif_content_new_mem, exif_content_unref
+ */
ExifContent *exif_content_new (void);
+
+/*! Reserve memory for and initialize new #ExifContent using the specified
+ * memory allocator.
+ *
+ * \return new allocated #ExifContent, or NULL on error
+ *
+ * \see exif_content_new, exif_content_unref
+ */
ExifContent *exif_content_new_mem (ExifMem *);
+
+/*! Increase reference counter for #ExifContent.
+ *
+ * \param[in] content #ExifContent
+ *
+ * \see exif_content_unref
+ */
void exif_content_ref (ExifContent *content);
+
+/*! Decrease reference counter for #ExifContent.
+ * When the reference count drops to zero, free the content.
+ *
+ * \param[in] content #ExifContent
+ */
void exif_content_unref (ExifContent *content);
+
+/*! Actually free the #ExifContent.
+ *
+ * \deprecated Should not be called directly. Use #exif_content_ref and
+ * #exif_content_unref instead.
+ *
+ * \param[in] content #ExifContent
+ */
void exif_content_free (ExifContent *content);
/*! Add an EXIF tag to an IFD.
/*! Return a short textual description of the given #ExifDataOption.
*
* \param[in] o option
- * \return localized textual description of the option
+ * \return localized textual description of the option,
+ * or NULL if unknown
*/
const char *exif_data_option_get_name (ExifDataOption o);
/*! Return a verbose textual description of the given #ExifDataOption.
*
* \param[in] o option
- * \return verbose localized textual description of the option
+ * \return verbose localized textual description of the option,
+ * or NULL if unknown
*/
const char *exif_data_option_get_description (ExifDataOption o);
* supported.
*
* \param[in] entry EXIF entry
- * \param[out] val buffer in which to store value
+ * \param[out] val buffer in which to store value; if entry is valid and
+ * maxlen > 0 then this string will be NUL-terminated
* \param[in] maxlen length of the buffer val
* \return val pointer
*/
/*! Return a textual representation of the given EXIF data type.
*
* \param[in] format EXIF data format
- * \return localized textual name
+ * \return localized textual name, or NULL if unknown
*/
const char *exif_format_get_name (ExifFormat format);
* characters.
*
* \param[in] ifd IFD
- * \return textual name of the IFD
+ * \return textual name of the IFD, or NULL if unknown
*/
const char *exif_ifd_get_name (ExifIfd ifd);
/*! Return a textual description of the given class of error log.
*
* \param[in] code logging message class
- * \return textual description of the log class
+ * \return textual description of the log class, or NULL if unknown
*/
const char *exif_log_code_get_title (ExifLogCode code);
/*! Return a verbose description of the given class of error log.
*
* \param[in] code logging message class
- * \return verbose description of the log class
+ * \return verbose description of the log class, or NULL if unknown
*/
const char *exif_log_code_get_message (ExifLogCode code);
* \param[in] a the allocator function
* \param[in] r the reallocator function
* \param[in] f the free function
+ * \return allocated #ExifMem, or NULL on error
*/
ExifMem *exif_mem_new (ExifMemAllocFunc a, ExifMemReallocFunc r,
ExifMemFreeFunc f);
*
* \param[in] d MakerNote data
* \param[in] n index of the entry within the MakerNote data
- * \return textual name of the tag
+ * \return textual name of the tag or NULL on error
*/
const char *exif_mnote_data_get_name (ExifMnoteData *d, unsigned int n);
*
* \param[in] d MakerNote data
* \param[in] n index of the entry within the MakerNote data
- * \return textual name of the tag
+ * \return textual name of the tag or NULL on error
*/
const char *exif_mnote_data_get_title (ExifMnoteData *d, unsigned int n);
*
* \param[in] d MakerNote data
* \param[in] n index of the entry within the MakerNote data
- * \return textual description of the tag
+ * \return textual description of the tag or NULL on error
*/
const char *exif_mnote_data_get_description (ExifMnoteData *d, unsigned int n);