Porting instructions for new Capabilities ??

View: New views
2 Messages — Rating Filter:   Alert me  

Porting instructions for new Capabilities ??

by Henrik /KaarPoSoft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear OpenSync developers,

It is GREAT to see progress towards 0.40. Thanks a lot!

I was wondering if there are any porting instructions for the new way of
handling capabilities...

In mozilla-sync
http://opensync.org/browser/plugins/mozilla-sync/trunk/src/mozilla-sync.cpp
I have calls to osync_capability_new (line 911), but the API seems to
have changed...

Any hints on how to fix this?

/Henrik

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

Re: Porting instructions for new Capabilities ??

by Henrik /KaarPoSoft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

I am trying to port mozilla-sync to the new OpenSync API.
The version checked-in as revision 5823 compiles.

mozilla-sync can sync two things:
- contacts in xmlformat
- events in vevent format

The current revision works for contacts/xmlformat.
However, it fails for events/vevent.

I am doing the following:
pCapabilities=osync_capabilities_new("vformat", ppOSyncError);
pCapabilitiesObjType=osync_capabilities_objtype_new(pCapabilities,
"event", ppOSyncError);
Loop over
pCapability = osync_capability_new(pCapabilitiesObjType, ppOSyncError);
osync_capability_set_name(pCapability, sz);
for sz = Alarm, AlarmRelatedEnd, Attach, Attendee, CalendarScale, ...

When trying to sync this to file-sync I get:
ERROR: Couldn't handle the capabilities in format "vevent" to process a
reported change in format "xmlformat-event"
EXIT_ERROR: _osync_obj_engine_clone_and_demerge_change: Couldn't handle
the capabilities in format "vevent" to process a reported change in
format "xmlformat-event"
EXIT_ERROR: _osync_obj_engine_mapping_find: Couldn't handle the
capabilities in format "vevent" to process a reported change in format
"xmlformat-event"
EXIT_ERROR: osync_obj_engine_map_changes: Couldn't handle the
capabilities in format "vevent" to process a reported change in format
"xmlformat-event"

Can anybody spot some obvious coding error on my part here?

Thanks in advance

/Henrik


Henrik /KaarPoSoft wrote:

> Dear OpenSync developers,
>
> It is GREAT to see progress towards 0.40. Thanks a lot!
>
> I was wondering if there are any porting instructions for the new way of
> handling capabilities...
>
> In mozilla-sync
> http://opensync.org/browser/plugins/mozilla-sync/trunk/src/mozilla-sync.cpp
> I have calls to osync_capability_new (line 911), but the API seems to
> have changed...
>
> Any hints on how to fix this?
>
> /Henrik
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Opensync-devel mailing list
> Opensync-devel@...
> https://lists.sourceforge.net/lists/listinfo/opensync-devel
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel