diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-10 05:00:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-10 05:00:03 +0400 |
commit | fc6c283271f0193e5626b2439b311114022b284a (patch) | |
tree | e3d537d275b8b952fdccf3a79cbb83dd783b8d90 /source/blender/imbuf/intern/IMB_metadata.h | |
parent | ec388a2a15346bace87cccc7e4da0eff89014ebb (diff) |
code cleanup: use bool for imbuf allocation functions.
Diffstat (limited to 'source/blender/imbuf/intern/IMB_metadata.h')
-rw-r--r-- | source/blender/imbuf/intern/IMB_metadata.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/IMB_metadata.h b/source/blender/imbuf/intern/IMB_metadata.h index f731fd69620..a717764b44f 100644 --- a/source/blender/imbuf/intern/IMB_metadata.h +++ b/source/blender/imbuf/intern/IMB_metadata.h @@ -62,7 +62,7 @@ void IMB_metadata_free(struct ImBuf *img); * \param len - length of value buffer allocated by user. * \return - 1 (true) if ImageInfo present and value for the key found, 0 (false) otherwise */ -int IMB_metadata_get_field(struct ImBuf *img, const char *key, char *value, const size_t len); +bool IMB_metadata_get_field(struct ImBuf *img, const char *key, char *value, const size_t len); /** set user data in the ImMetaData struct, which has to be allocated with IMB_metadata_create * before calling this function. @@ -71,13 +71,13 @@ int IMB_metadata_get_field(struct ImBuf *img, const char *key, char *value, cons * \param value - the data to be written to the field. zero terminated string * \return - 1 (true) if ImageInfo present, 0 (false) otherwise */ -int IMB_metadata_add_field(struct ImBuf *img, const char *key, const char *value); +bool IMB_metadata_add_field(struct ImBuf *img, const char *key, const char *value); /** delete the key/field par in the ImMetaData struct. * \param img - the ImBuf that contains the image data * \param key - the key of the field * \return - 1 (true) if delete the key/field, 0 (false) otherwise */ -int IMB_metadata_del_field(struct ImBuf *img, const char *key); +bool IMB_metadata_del_field(struct ImBuf *img, const char *key); #endif /* __IMB_METADATA_H__ */ |