From: <dg...@su...> - 2009-01-08 08:16:15
|
Author: bricks Date: Thu Jan 8 09:15:39 2009 New Revision: 5052 URL: http://www.opensync.org/changeset/5052 Log: implemented finalize function and changed the order of the parameters in discovery function (tomboy-sync doesn't compile due to anchor changes) Modified: plugins/tomboy-sync/src/tomboy_sync.c Modified: plugins/tomboy-sync/src/tomboy_sync.c ============================================================================== --- plugins/tomboy-sync/src/tomboy_sync.c Thu Jan 8 09:09:09 2009 (r5051) +++ plugins/tomboy-sync/src/tomboy_sync.c Thu Jan 8 09:15:39 2009 (r5052) @@ -259,12 +259,21 @@ static void osync_tomboysync_finalize(void *data) { - + if (!data) { + return; + } + OSyncTomboyEnv *tomboyenv; + tomboyenv = (OSyncTomboyEnv*)data; +#ifdef ENABLE_DBUS + osync_free(tomboyenv->connection); + osync_free(tomboyenv->proxy); +#endif + osync_free(tomboyenv->dir); } /* Here we actually tell opensync which sinks are available. For this plugin, we * just report all objtype as available. Since the resource are configured like this. */ -static osync_bool osync_tomboysync_discover(void *data, OSyncPluginInfo *info, OSyncError **error) +static osync_bool osync_tomboysync_discover(OSyncPluginInfo *info, void *data, OSyncError **error) { osync_trace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, data, info, error); |