From: Bjoern R. <b....@fh...> - 2008-10-28 08:50:41
|
Hi, > Hi, > > In my search to understand OpenSync 0.3 internals I ported the first > example of the page http://www.opensync.org/wiki/Examples. Attached > source: test.c. Don't know if it is really correct, but it produces a > output that seems fairly right. Your code seems to be right. If you need more examples please look at the source of msynctool. > > I have two and a half questions: > 1. Does the OSyncPluginEnv not to be initialized anymore? No. Only call osync_plugin_env_new and afterwards osync_plugin_env_load. If you want to load the sync plugins from a different directory pass a path to to osync_plugin_env_load. Instead if you want to use the default dir pass NULL as second parameter. (In your file you used a variable plugindir which was initialized with NULL ;-) ) > 2. Is there a list of translations of the OpensSync internals? I mean > a list in which I can find the internals of 0.22 and see what they > have to be in the new architecture. The page > http://www.opensync.org/wiki/PluginPortingGuide-0.30 gives some > information, but not enough. I don't think so. Because both pages itself are outdated. E.g. we changed the way to get the configuration of a plugin. We introduced in 0.37 a new api which is common and usable for all sync plugins. It is hard to understand how to use the api of opensync but if you want to get familiar with the code take a look at file-sync or start to write a plugin (sync or format) or try some code from msynctool. In my opinion that's the best way to get into opensync. By the way I started with opensync not even a year ago. > > 2.5 The white paper that i found included in the opensync source code > (opensync/docs/whitepaper) is not finished yet. Still it is very > useful to get the picture even in this stage. It took me some time to > get the .tex in a .pdf. Is it possible to put a link to a PDF of the > latest version on the page > http://www.opensync.org/wiki/devel-branch-0.30. Daniel (after asking him about some annoying internals ;-) ) advised me to this document. He has a pdf version on http://cryptomilch.de/~dgollub/OpenSync/OpenSync-0.40-DRAFT-20080118.pdf . It is planned to finish this document together with the 0.40 release. But in excuse of the delay of the development and unfinished/outdated documentation all few opensync developers work on opensync in their rare free time. There is no developer who is working full time on opensync. > > Thanks, > Erik-Jan > -- /Bjoern Ricks |