Commit c63d00a3 authored by Hubert Figuiere's avatar Hubert Figuiere
Browse files

api: added NS_XML constant to the public API.

parent 6191c2b9
......@@ -17,6 +17,7 @@
array instead of simple property.
- Lot of bug fixes in XMPFiles and XMPCore.
- Removed Exempi provided support for GIF in favour of Adobe's.
- New: API NS_XML constant
Internal:
......
......@@ -165,6 +165,7 @@ const char NS_TPG[] = kXMP_NS_XMP_PagedFile;
const char NS_DIMENSIONS_TYPE[] = kXMP_NS_XMP_Dimensions;
const char NS_CC[] = "http://creativecommons.org/ns#";
const char NS_PDF[] = kXMP_NS_PDF;
const char NS_XML[] = kXMP_NS_XML;
#define STRING(x) reinterpret_cast<std::string *>(x)
......
......@@ -134,7 +134,7 @@ int test_main(int argc, char *argv[])
BOOST_CHECK(props[0] == tuple3({ NS_DC, "dc:rights", "" }));
BOOST_CHECK(props[1] == tuple3({ "", "[1]", "2006, Hubert Figuiere" }));
BOOST_CHECK(props[2] == tuple3({ "http://www.w3.org/XML/1998/namespace", "xml:lang", "x-default" }));
BOOST_CHECK(props[2] == tuple3({ NS_XML, "xml:lang", "x-default" }));
BOOST_CHECK(xmp_iterator_free(iter));
}
......
......@@ -61,6 +61,8 @@ extern const char NS_DIMENSIONS_TYPE[];
extern const char NS_CC[];
/* Added in Exempi 2.1 */
extern const char NS_PDF[];
/* Added in Exempi 2.5 */
extern const char NS_XML[];
#ifdef __cplusplus
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment