g_hash_table_foreach (hash, insert_member, &struct_node);
if (!struct_node)
return FALSE;
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
} else if (type == G_TYPE_VALUE_ARRAY) {
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
GValueArray *va = g_value_get_boxed (value);
xmlNode *node;
int i;
body = soup_xmlrpc_build_method_call (method_name, params->values,
params->n_values);
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
g_value_array_free (params);
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
if (!body)
return NULL;
if (!data || strcmp ((const char *)data->name, "data") != 0)
return FALSE;
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
array = g_value_array_new (1);
for (xval = find_real_node (data->children);
xval;
}
g_value_init (value, G_TYPE_VALUE_ARRAY);
g_value_take_boxed (value, array);
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
} else
return FALSE;
if (!node || strcmp ((const char *)node->name, "params") != 0)
goto fail;
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
*params = g_value_array_new (1);
param = find_real_node (node->children);
while (param && !strcmp ((const char *)param->name, "param")) {
param = find_real_node (param->next);
}
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
success = TRUE;
*method_name = g_strdup ((char *)xmlMethodName);
success = soup_value_array_to_args (params, args);
va_end (args);
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
g_value_array_free (params);
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
return success;
}
static void
print_value (GValue *value)
{
+#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#endif
if (G_VALUE_HOLDS_STRING (value))
printf ("%s", g_value_get_string (value));
else if (G_VALUE_HOLDS_INT (value))
printf (" ]");
} else
printf ("(%s)", g_type_name (G_VALUE_TYPE (value)));
+#ifdef G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
}
static void