Commit 1c4f09a5 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Add gtk_json_parser_set_error

parent 53d9610a
......@@ -1129,3 +1129,12 @@ gtk_json_parser_end (GtkJsonParser *self)
return TRUE;
}
void
gtk_json_parser_set_error (GtkJsonParser *self,
GError *error)
{
if (self->error)
g_error_free (error);
else
self->error = error;
}
......@@ -60,6 +60,9 @@ gboolean gtk_json_parser_start_object (GtkJsonParser
gboolean gtk_json_parser_start_array (GtkJsonParser *self);
gboolean gtk_json_parser_end (GtkJsonParser *self);
void gtk_json_parser_set_error (GtkJsonParser *self,
GError *error);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment