From: <svn...@op...> - 2009-04-06 12:00:24
|
Author: bellmich Date: Mon Apr 6 14:00:12 2009 New Revision: 1034 URL: http://libsyncml.opensync.org/changeset/1034 Log: fixed some libsoup 2.2 issues which were introduced by the gcc profiling fixes Modified: trunk/tests/check_libsoup.c Modified: trunk/tests/check_libsoup.c ============================================================================== --- trunk/tests/check_libsoup.c Mon Apr 6 13:38:13 2009 (r1033) +++ trunk/tests/check_libsoup.c Mon Apr 6 14:00:12 2009 (r1034) @@ -71,6 +71,8 @@ SoupServerContext *context, SoupMessage *msg, gpointer data) +{ + smlTrace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, context, msg, data); #else static void server_callback( SoupServer *server, @@ -79,9 +81,10 @@ GHashTable *query, SoupClientContext *client, gpointer data) -#endif { + /* additional stuff is only traced to avoid warnings from gcc profiling */ smlTrace(TRACE_ENTRY, "%s(%p, %p, %s, %p, %p, %p)", __func__, server, msg, path, query, client, data); +#endif smlAssert(msg); #ifdef HAVE_LIBSOUP22 const char *content = msg->request.body; @@ -115,14 +118,17 @@ #ifdef HAVE_LIBSOUP22 static void client_callback(SoupMessage *msg, gpointer userdata) +{ + smlTrace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, msg, userdata); #else static void client_callback( SoupSession *session, SoupMessage *msg, gpointer userdata) -#endif { + /* session is only traced to avoid warnings from gcc profiling */ smlTrace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, session, msg, userdata); +#endif g_atomic_int_inc(&client_messages); smlTrace(TRACE_EXIT, "%s", __func__); } |