diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 65da48d..a562ab1 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2803,15 +2803,20 @@ namespace GLib { public void* pop (); } - public delegate void MarkupParserStartElementFunc (MarkupParseContext context, string element_name, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_values) throws MarkupError; + [CCode (has_target = false)] + public delegate void MarkupParserStartElementFunc (MarkupParseContext context, string element_name, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_values, void* user_data) throws MarkupError; - public delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name) throws MarkupError; + [CCode (has_target = false)] + public delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name, void* user_data) throws MarkupError; - public delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len) throws MarkupError; + [CCode (has_target = false)] + public delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len, void* user_data) throws MarkupError; - public delegate void MarkupParserPassthroughFunc (MarkupParseContext context, string passthrough_text, size_t text_len) throws MarkupError; + [CCode (has_target = false)] + public delegate void MarkupParserPassthroughFunc (MarkupParseContext context, string passthrough_text, size_t text_len, void* user_data) throws MarkupError; - public delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error); + [CCode (has_target = false)] + public delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error, void* user_data); public struct MarkupParser { public unowned MarkupParserStartElementFunc start_element;