|
From: Quentin D. <que...@gm...> - 2011-01-08 12:36:43
|
Here is a patch to make the gnokii plugin compile against the latest api. However, the plugin does not register yet and there are still warnings during compilation but I think this patch is a good starting point. Could anyone commit the changes since I have no access to svn? There are also a sink and an easy slowsync issue to solve in gnokii_contacts.c (and the same for gnokii_calendar.c) but before being able to fix this I would need two questions answered: 1. what is exactly a sink object and what is the concept behind it? Just a two lines explaination please, I have a vague idea... 2. it's my first time I code in C, but do the functions have to respond to a particular constructor? Take the example of this outdated one: void gnokii_calendar_get_changes(void *plugindata, OSyncPluginInfo *info, OSyncContext *ctx) which is only called by: osync_objtype_sink_set_get_changes_func(event_sinkenv->sink, gnokii_calendar_get_changes); no argument is passed, to I suppose it tells the engine to call the function and to pass itself the required arguments? Hence the need to use a certain standard constructor that I would have to take over from say the file-sync plugin. There are also some objformat issues in that file, but I will try hard to solve them lateron if nobody is willing to apply his/her expertise easily and quickly. ;) Best regards, Quentin (falling back on gnokii because of syncml issue: Ticket #1267) |