[vala] glib-2.0: revert previous patch against MarkupParser callbacks.
- From: Evan Nemerson <evann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: revert previous patch against MarkupParser callbacks.
- Date: Tue, 26 Jan 2010 23:05:56 +0000 (UTC)
commit 9a320a9a6d7b97c4205871ce80d8e4c6d1a377db
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jan 26 14:51:22 2010 -0800
glib-2.0: revert previous patch against MarkupParser callbacks.
The new version sacrificed usability for theoretical correctness, and
was not well received.
vapi/glib-2.0.vapi | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index d170aff..7083cbc 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2830,7 +2830,8 @@ namespace GLib {
public string[] fetch_all ();
}
- /* Simple XML Subset Parser */
+ /* Simple XML Subset Parser
+ See http://live.gnome.org/Vala/MarkupSample for an example */
public errordomain MarkupError {
BAD_UTF8,
@@ -2860,20 +2861,15 @@ namespace GLib {
public void* pop ();
}
- [CCode (cname = "GCallback")]
- public static 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 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 (cname = "GCallback")]
- public static delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name, void* user_data) throws MarkupError;
+ public delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name) throws MarkupError;
- [CCode (cname = "GCallback")]
- public static delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len, void* user_data) throws MarkupError;
+ public delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len) throws MarkupError;
- [CCode (cname = "GCallback")]
- public static delegate void MarkupParserPassthroughFunc (MarkupParseContext context, string passthrough_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 (cname = "GCallback")]
- public static delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error, void* user_data);
+ public delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error);
public struct MarkupParser {
public unowned MarkupParserStartElementFunc start_element;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]