From: <svn...@op...> - 2009-08-07 17:38:50
|
Author: bellmich Date: Fri Aug 7 19:38:36 2009 New Revision: 1233 URL: http://libsyncml.opensync.org/changeset/1233 Log: updated to reduced SmlLocation API Modified: trunk/libsyncml/objects/sml_devinf_obj.c Modified: trunk/libsyncml/objects/sml_devinf_obj.c ============================================================================== --- trunk/libsyncml/objects/sml_devinf_obj.c Fri Aug 7 19:37:52 2009 (r1232) +++ trunk/libsyncml/objects/sml_devinf_obj.c Fri Aug 7 19:38:36 2009 (r1233) @@ -30,7 +30,7 @@ #include <libsyncml/sml_elements.h> #include <libsyncml/sml_command.h> #include "libsyncml/parser/sml_xml_parse.h" -#include "libsyncml/data_sync_api/sml_location_internals.h" +#include "libsyncml/data_sync_api/sml_location.h" #ifdef WIN32 #include <windef.h> @@ -616,17 +616,14 @@ SmlLocation *devinf11 = NULL; SmlLocation *devinf12 = NULL; - devinf12 = sml_location_new_with_options("./devinf12", NULL, error); - if (!devinf12) - goto error; + devinf12 = sml_location_new(); + sml_location_set_uri(devinf12, "./devinf12"); - devinf11 = sml_location_new_with_options("./devinf11", NULL, error); - if (!devinf12) - goto error; + devinf11 = sml_location_new(); + sml_location_set_uri(devinf11, "./devinf11"); - devinf10 = sml_location_new_with_options("./devinf10", NULL, error); - if (!devinf12) - goto error; + devinf10 = sml_location_new(); + sml_location_set_uri(devinf10, "./devinf10"); /* PUT callbacks * |