summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2017-01-30 01:40:44 -0500
committerHubert Figuière <hub@figuiere.net>2017-01-30 01:40:44 -0500
commitc63d00a3ebfd94939dc764d40c11e7e4f3cc35eb (patch)
treeda5082283e5e5ec6473e0acada2077915d15ee41
parent6191c2b9003e16b9a96e95460e7e252dafd63839 (diff)
api: added NS_XML constant to the public API.
-rw-r--r--NEWS1
-rw-r--r--exempi/exempi.cpp1
-rw-r--r--exempi/tests/test-iterator.cpp2
-rw-r--r--exempi/xmpconsts.h2
4 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 20b3878..7841929 100644
--- a/NEWS
+++ b/NEWS
@@ -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:
diff --git a/exempi/exempi.cpp b/exempi/exempi.cpp
index 6857df9..0784a55 100644
--- a/exempi/exempi.cpp
+++ b/exempi/exempi.cpp
@@ -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)
diff --git a/exempi/tests/test-iterator.cpp b/exempi/tests/test-iterator.cpp
index f78910e..e154cb7 100644
--- a/exempi/tests/test-iterator.cpp
+++ b/exempi/tests/test-iterator.cpp
@@ -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));
}
diff --git a/exempi/xmpconsts.h b/exempi/xmpconsts.h
index c985d42..647ac3d 100644
--- a/exempi/xmpconsts.h
+++ b/exempi/xmpconsts.h
@@ -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
}