]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add ScannerMsgFunc and Scanner.msg_handler
authorJulian Andres Klode <jak@jak-linux.org>
Tue, 6 Oct 2009 19:08:08 +0000 (21:08 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 9 Oct 2009 18:47:01 +0000 (20:47 +0200)
vapi/glib-2.0.vapi

index 89740e8f34c82bb749f127b104fb7a891b30d36a..a0e15272ee88c06ba3585df8dd0c9d7c37e26ed8 100644 (file)
@@ -2115,6 +2115,8 @@ namespace GLib {
        public string format_size_for_display (int64 size);
 
        /* Lexical Scanner */
+       [CCode (has_target = false)]
+       public delegate void ScannerMsgFunc (Scanner scanner, string message, bool error);
 
        [Compact]
        [CCode (free_function = "g_scanner_destroy")]
@@ -2128,6 +2130,7 @@ namespace GLib {
                public TokenValue next_value;
                public uint next_line;
                public uint next_position;
+               public ScannerMsgFunc msg_handler;
                public Scanner (ScannerConfig? config_templ);
                public void input_file (int input_fd);
                public void sync_file_offset ();