[libgit2-glib] Fix prompts signature



commit d4f4b2602a7dd5770e2977b384859dd63130bc21
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Dec 23 17:24:26 2014 +0100

    Fix prompts signature

 libgit2-glib/ggit-cred-ssh-interactive.c |    2 +-
 libgit2-glib/ggit-cred-ssh-interactive.h |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-cred-ssh-interactive.c b/libgit2-glib/ggit-cred-ssh-interactive.c
index 050d2e9..d7f0032 100644
--- a/libgit2-glib/ggit-cred-ssh-interactive.c
+++ b/libgit2-glib/ggit-cred-ssh-interactive.c
@@ -186,7 +186,7 @@ callback_wrapper (const char                            *name,
        g_free (wname);
        g_free (winstruction);
 
-       GGIT_CRED_SSH_INTERACTIVE_GET_CLASS (interactive)->prompt (wprompts, num_prompts);
+       GGIT_CRED_SSH_INTERACTIVE_GET_CLASS (interactive)->prompt (interactive, wprompts, num_prompts);
 
        for (i = 0; i < num_prompts; i++)
        {
diff --git a/libgit2-glib/ggit-cred-ssh-interactive.h b/libgit2-glib/ggit-cred-ssh-interactive.h
index 32f414e..5399d5b 100644
--- a/libgit2-glib/ggit-cred-ssh-interactive.h
+++ b/libgit2-glib/ggit-cred-ssh-interactive.h
@@ -51,7 +51,9 @@ struct _GgitCredSshInteractiveClass
        /*< private >*/
        GgitCredClass parent_class;
 
-       void (*prompt) (GgitCredSshInteractivePrompt **prompts,
+       /* virtual methods */
+       void (*prompt) (GgitCredSshInteractive        *cred,
+                       GgitCredSshInteractivePrompt **prompts,
                        gsize                          num_prompts);
 };
 


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