[libgit2-glib] Config callback now passes entry



commit b90b9e15763f38673cc0b721d872b136e8f1f306
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jan 20 13:56:32 2014 +0100

    Config callback now passes entry

 libgit2-glib/ggit-config.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-config.c b/libgit2-glib/ggit-config.c
index 18639ff..60a2fd0 100644
--- a/libgit2-glib/ggit-config.c
+++ b/libgit2-glib/ggit-config.c
@@ -681,12 +681,19 @@ typedef struct
 } MatchInfo;
 
 static gint
-match_foreach (const gchar *name,
-               const gchar *value,
-               MatchInfo   *info)
+match_foreach (GgitConfigEntry *entry,
+               MatchInfo       *info)
 {
+       const gchar *name;
+
+       name = ggit_config_entry_get_name (entry);
+
        if (g_regex_match (info->regex, name, (GRegexMatchFlags)0, &info->ret))
        {
+               const gchar *value;
+
+               value = ggit_config_entry_get_value (entry);
+
                if (info->callback)
                {
                        gint ret;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]