From: W. <ha...@pv...> - 2006-10-05 07:38:14
|
tor, 05,.10.2006 kl. 12.42 +0530, skrev Kumar G: > Hi, > > > > I am new to opensysnc. I am trying to build syncml-plugin > (libopensync-plugin-syncml-0.19.tar.gz). While building I am getting > the following error > > > > syncml_plugin.c: In function 'client_connect': > > syncml_plugin.c:1014: error: incompatible type for argument 6 of > 'smlNotificationNew' > > cc1: warnings being treated as errors > > > > After investigation syncml library(libsyncml-0.4.0) source code, I > found that the definition of smlNotificationNew() (In libsyncml-0.4.0 > \libsyncml\ sml_notification.c ) has only 7 arguments > > > > SmlNotification *smlNotificationNew(SmlNotificationVersion version, > > > SmlNotificationUIMode mode, > > > SmlNotificationInitiator init, > > > unsigned int sessionID, > > > const char *identifier, > > > SmlMimeType type, > > > SmlError **error) > > > > While synncml_plugin.c called this method (at line#1014) with 8 > parameters, > > > > /* Create the SAN */ > > san = smlNotificationNew(env->version, > > > SML_SAN_UIMODE_UNSPECIFIED, > > > SML_SAN_INITIATOR_USER, > > 1, > > > env->identifier, > > "/", > > > env->useWbxml ? SML_MIMETYPE_WBXML : SML_MIMETYPE_XML, > > &error); > > > > Will appreciate if anyone could help me understanding why the 6th > parameter is (“/”) used for? I can't help you understand what the parameter is used for, but a quick check of libsyncml SVN shows that the code in Subversion uses the 8-paramter version: http://libsyncml.opensync.org/browser/trunk/libsyncml/sml_notification.h So I guess it means that you must either use libsyncml from Subversion (see http://libsyncml.opensync.org for instructions), or wait for a new release of libsyncml. -- Håvard Wigtil || http://wigtil.net |