|
From: deloptes <del...@ya...> - 2011-01-13 22:56:55
|
Suggestion for patch to fix the build of the xsl plugin
(I didn't have time too look deeper into the code, and need to find out how
to test it)
$ diff -ubwN src/xsltformat.c.orig src/xsltformat.c
--- src/xsltformat.c.orig 2011-01-13 23:49:46.000000000 +0100
+++ src/xsltformat.c 2011-01-13 23:50:26.000000000 +0100
@@ -97,7 +97,7 @@
if (!format)
return FALSE;
- osync_format_env_register_objformat(env, format);
+ osync_format_env_register_objformat(env, format, error);
osync_objformat_unref(format);
return TRUE;
@@ -144,7 +144,7 @@
osync_converter_set_initialize_func(conv, initialize_func);
osync_converter_set_finalize_func(conv, finalize_func);
- osync_format_env_register_converter(env, conv);
+ osync_format_env_register_converter(env, conv, &error);
osync_converter_unref(conv);
return TRUE;
@@ -171,14 +171,14 @@
/* XSLT to xml-contact */
result = reg_conv(env, xslt_contact, xml_contact,
conv_xslt_to_contact,
- initialize_xslt, finalize_xslt);
+ initialize_xslt,
(OSyncFormatConverterFinalizeFunc) finalize_xslt);
if (!result)
return FALSE;
/* xml-contact to XSLT */
result = reg_conv(env, xml_contact, xslt_contact,
conv_contact_to_xslt,
- initialize_xslt, finalize_xslt);
+ initialize_xslt,
(OSyncFormatConverterFinalizeFunc) finalize_xslt);
return result;
}
$ make
[100%] Building C object src/CMakeFiles/xsltformat_plugin.dir/xsltformat.o
Linking C shared module xsltformat_plugin.so
[100%] Built target xsltformat_plugin
|