Skip to Content.
Sympa Menu

cc-devel - [cc-devel] [PATCH] liblicense & Exempi 1.99.5 API breakage

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: Hubert Figuiere <hub AT figuiere.net>
  • To: cc-devel AT lists.ibiblio.org
  • Subject: [cc-devel] [PATCH] liblicense & Exempi 1.99.5 API breakage
  • Date: Wed, 07 Nov 2007 12:30:28 -0500

Hi guys,

I released Exempi 1.99.5 yesterday with a small API / ABI breakage.

Attached is a patch for liblicense against SVN to address it.

I have also added the patch to my build in SuSE build service.
The repository is at:
http://download.opensuse.org/repositories/home:/hfiguiere/



Hub

Index: configure.ac
===================================================================
--- configure.ac	(revision 7884)
+++ configure.ac	(working copy)
@@ -142,7 +142,7 @@
 # check for exempi
 ##################################################################
 
-EXEMPI_REQUIRED=1.99.3
+EXEMPI_REQUIRED=1.99.5
 
 AC_ARG_ENABLE(xmp, AC_HELP_STRING([--disable-xmp], [Disable XMP extraction]),,[enable_xmp=yes])
 if test "x$enable_xmp" = "xyes"; then
Index: modules/io/sidecar_xmp.c
===================================================================
--- modules/io/sidecar_xmp.c	(revision 7884)
+++ modules/io/sidecar_xmp.c	(working copy)
@@ -140,7 +140,7 @@
 			free(buffer);
 			uri_string = NULL;
 			license_uri = xmp_string_new();
-			if ( xmp_get_property(xmp, NS_CC, "license", license_uri) ) {
+			if ( xmp_get_property(xmp, NS_CC, "license", license_uri, NULL) ) {
 				uri_string = strdup(xmp_string_cstr(license_uri));
 			}
 
@@ -185,7 +185,7 @@
 		uri = "";
 	}
 
-	xmp_set_property(xmp, NS_CC, "license", uri);
+	xmp_set_property(xmp, NS_CC, "license", uri, 0);
 
 	xmp_string = xmp_string_new();
 	xmp_serialize(xmp,xmp_string,XMP_SERIAL_OMITPACKETWRAPPER,2);
Index: modules/io/exempi.c
===================================================================
--- modules/io/exempi.c	(revision 7884)
+++ modules/io/exempi.c	(working copy)
@@ -55,7 +55,7 @@
 
 	if ( xmp ) {
 		XmpStringPtr license_uri = xmp_string_new();
-		if ( xmp_get_property(xmp, NS_CC, "license", license_uri) ) {
+		if ( xmp_get_property(xmp, NS_CC, "license", license_uri, NULL) ) {
 			uri_string = strdup(xmp_string_cstr(license_uri));
 		}
 
@@ -99,7 +99,7 @@
 	}
 
 	if ( xmp_files_can_put_xmp(f, xmp) ) {
-		xmp_set_property(xmp, NS_CC, "license", uri);
+		xmp_set_property(xmp, NS_CC, "license", uri, 0);
 		xmp_files_put_xmp(f, xmp);
 	} else {
 		fprintf(stderr,"Unable to write XMP to this file.\n");

Attachment: signature.asc
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.24.

Top of Page