|
From: Luiz A. D. de L. <lui...@gm...> - 2011-05-21 21:30:43
|
Hello guys,
I'm new on the opensync world. I hope that the project is still alive :-).
I'm writting something like python-module plugin but for ruby. It is getting
close to the point that I have all methods mapped to ruby world (SWIG) and I
already wrote some code to deal with callback functions. I am also mapping
those methods to a ruby oo structure (with classes). When it gets ready, I
wish to contribute back to the project (if accepted).
Now, I faced a problem. I use osync_plugin_set_data to save ruby context
callback functions for initialize,discover,finalize callbacks.
ObjectTypeSink also need some callbacks, which are paticular for each Sink
type. However, the same solution is not possible because even if I can
osync_objtype_sink_set_userdata, I cannot get it back because I have no
exported osync_objtype_sink_get_userdata. I can write some hack to get a
individual userdata callback functions save but this is not really what I
want. So, I have some questions:
1) Turning osync_objtype_sink_get_userdata into a private method was
intentional?
2) Is there a real reason for that?
3) Am I doing something wrong?
...set_userdate is declared in opensync_objtype_sink.h while ...get...
in opensync_objtype_sink_internals.h
I'm using ubuntu 11.04 packages (opensync-0.39) and also svn snapshot.
Thanks,
---
Luiz Angelo Daros de Luca, Me.
lui...@gm...
|