From: <dg...@su...> - 2009-01-19 21:16:36
|
Author: savago Date: Mon Jan 19 22:15:35 2009 New Revision: 5199 URL: http://www.opensync.org/changeset/5199 Log: Updating function signature (eliminates compiler warning). Modified: format-plugins/xsltformat/src/xsltformat.c Modified: format-plugins/xsltformat/src/xsltformat.c ============================================================================== --- format-plugins/xsltformat/src/xsltformat.c Mon Jan 19 21:56:21 2009 (r5198) +++ format-plugins/xsltformat/src/xsltformat.c Mon Jan 19 22:15:35 2009 (r5199) @@ -33,7 +33,9 @@ #include <opensync/opensync-format.h> #include "xslt_aux.h" -static OSyncConvCmpResult compare_format1(const char *leftdata, unsigned int leftsize, const char *rightdata, unsigned int rightsize) +static OSyncConvCmpResult compare_format1(const char *leftdata, unsigned int leftsize, + const char *rightdata, unsigned int rightsize, + void *user_data) { /* * This function can be used to compare two types of your formats. @@ -116,7 +118,8 @@ return TRUE; } -static void destroy_format1(char *input, size_t inpsize) + +static void destroy_format1(char *input, unsigned int inpsize, void *user_data) { /* * Here you have to free the data allocated by your format @@ -162,8 +165,8 @@ osync_objformat_set_compare_func(format, compare_format1); osync_objformat_set_destroy_func(format, destroy_format1); - osync_objformat_set_duplicate_func(format, duplicate_format1); - osync_objformat_set_print_func(format, print_format1); + //osync_objformat_set_duplicate_func(format, duplicate_format1); + //osync_objformat_set_print_func(format, print_format1); osync_format_env_register_objformat(env, format); |