/* we don't like trouble... */
if (strcmp (element_name, "trouble") == 0)
- g_set_error (error, 0, 0, "we don't like trouble");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "we don't like trouble");
}
static void
if (result == NULL || result[0] == '\0')
{
g_free (result);
- g_set_error (error, 0, 0, "got no data");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "got no data");
return NULL;
}
g_string_free (string, TRUE);
strings_allocated--;
- return FALSE;
+ return NULL;
}
result = string->str;
if (result == NULL || result[0] == '\0')
{
g_free (result);
- g_set_error (error, 0, 0, "got no data");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "got no data");
return NULL;
}
const char *error_message;
} TestCase;
-void
+static void
test (gconstpointer user_data)
{
const TestCase *tc = user_data;