|
From: Chris F. <cd...@fo...> - 2012-08-09 00:13:37
|
On Thu, Aug 02, 2012 at 03:27:04PM +0100, Mark Ellis wrote:
> You can reproduce it wonderfully with the test module included with the
> python plugin, which is what i have mostly been using, it's a lot
> simpler to deal with.
Ahem..... I think this is the problem. :-)
@@ -353,10 +360,9 @@ static void *pm_initialize(OSyncPlugin *plugin, OSyncPluginInfo *info, OSyncErro
Py_DECREF(ret);
/* loop through all objtype sinks, set up function pointers */
sinks = osync_plugin_info_get_objtype_sinks(info);
for (s = sinks; s; s = s->next) {
- sink = (OSyncObjTypeSink *)s;
+ sink = (OSyncObjTypeSink *)s->data;
osync_objtype_sink_set_connect_func(sink, pm_connect);
osync_objtype_sink_set_disconnect_func(sink, pm_disconnect);
Will do more testing, and if it works reliably, I'll create a git repo
for it.
If you could test this and let me know if you find any further problems,
that would be great!
- Chris
|