[trunk] API: Error handling for osync_xmlfield_{add, set}_key and osync_xmlfield_sort

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

[trunk] API: Error handling for osync_xmlfield_{add, set}_key and osync_xmlfield_sort

by Daniel Gollub-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

to make OSyncXMLField API more stable for the 0.40 soft-freeze following
function got an OSyncError** added to their parameter list:

    * osync_xmlfield_add_key_value
    * osync_xmlfield_set_key_value
    * osync_xmlfield_sort

Additionally the return type got changed from void to osync_bool. On FALSE
check for any error in the OSyncError** struct.

This affects very likely most format plugins which provide conversion
functions to the XMLFormat.


Porting instruction: add an OSyncError** to the function call and check the
return value and handle any error.


Reference Port: http://opensync.org/changeset/5771
(Incomplete port, no complete error handling - see FIXME_ interfaces)

Changeset: http://opensync.org/changeset/5769

Best Regards,
Daniel

--
Daniel Gollub                        Geschaeftsfuehrer: Ralph Dehner
FOSS Developer                       Unternehmenssitz:  Vohburg
B1 Systems GmbH                      Amtsgericht:       Ingolstadt
Mobil: +49-(0)-160 47 73 970         Handelsregister:   HRB 3537
EMail: gollub@...          http://www.b1-systems.de

Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0xED14B95C2F8CA78D

------------------------------------------------------------------------------
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