]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix g_regex_replace_eval binding
authorMichal Hruby <michal.mhr@gmail.com>
Fri, 2 Jul 2010 19:22:08 +0000 (21:22 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 2 Jul 2010 19:22:08 +0000 (21:22 +0200)
vapi/glib-2.0.vapi

index 759c2307d77a7c809727858c6b2ebafa58ac1203..596570a690f5ce34ab0cc6672af0017e7a99244b 100644 (file)
@@ -2955,12 +2955,11 @@ namespace GLib {
                public string[] split_full (string str, ssize_t string_len = -1, int start_position = 0, RegexMatchFlags match_options = 0, int max_tokens = 0) throws RegexError;
                public string replace (string str, ssize_t string_len, int start_position, string replacement, RegexMatchFlags match_options = 0) throws RegexError;
                public string replace_literal (string str, ssize_t string_len, int start_position, string replacement, RegexMatchFlags match_options = 0) throws RegexError;
-               public string replace_eval (string str, ssize_t string_len, int start_position, RegexMatchFlags match_options = 0, RegexEvalCallback eval, void* user_data) throws RegexError;
+               public string replace_eval (string str, ssize_t string_len, int start_position, RegexMatchFlags match_options = 0, RegexEvalCallback eval) throws RegexError;
                public static bool check_replacement (out bool has_references = null) throws RegexError;
        }
 
-       [CCode (has_target = false)]
-       public delegate bool RegexEvalCallback (MatchInfo match_info, StringBuilder result, void* user_data);
+       public delegate bool RegexEvalCallback (MatchInfo match_info, StringBuilder result);
 
        [Compact]
        [CCode (free_function = "g_match_info_free")]