|
From: Chris F. <cd...@fo...> - 2011-01-14 19:25:43
|
The xsltformat plugin already compiles for me, using the latest SVN. I'm not entirely sure that the plugin does much though. :-) - Chris On Thu, Jan 13, 2011 at 11:56:07PM +0100, deloptes wrote: > 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 > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Opensync-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensync-devel |