[libgit2-glib] Make remote callbacks native return a pointer
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Make remote callbacks native return a pointer
- Date: Mon, 22 Dec 2014 19:27:38 +0000 (UTC)
commit 07fee2776e7e758c8d0d40fb98f979b99db42377
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Dec 22 20:20:33 2014 +0100
Make remote callbacks native return a pointer
libgit2-glib/ggit-clone-options.c | 4 ++--
libgit2-glib/ggit-remote-callbacks.c | 4 ++--
libgit2-glib/ggit-remote-callbacks.h | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-clone-options.c b/libgit2-glib/ggit-clone-options.c
index cdc38b2..dce0c39 100644
--- a/libgit2-glib/ggit-clone-options.c
+++ b/libgit2-glib/ggit-clone-options.c
@@ -75,7 +75,7 @@ ggit_clone_options_copy (GgitCloneOptions *clone_options)
if (clone_options->remote_callbacks)
{
new_clone_options->remote_callbacks = g_object_ref (clone_options->remote_callbacks);
- gnew_clone_options.remote_callbacks = _ggit_remote_callbacks_get_native
(new_clone_options->remote_callbacks);
+ gnew_clone_options.remote_callbacks = *_ggit_remote_callbacks_get_native
(new_clone_options->remote_callbacks);
}
new_clone_options->clone_options = gnew_clone_options;
@@ -254,7 +254,7 @@ ggit_clone_options_set_remote_callbacks (GgitCloneOptions *options,
if (callbacks != NULL)
{
options->remote_callbacks = g_object_ref (callbacks);
- options->clone_options.remote_callbacks = _ggit_remote_callbacks_get_native (callbacks);
+ options->clone_options.remote_callbacks = *_ggit_remote_callbacks_get_native (callbacks);
}
else
{
diff --git a/libgit2-glib/ggit-remote-callbacks.c b/libgit2-glib/ggit-remote-callbacks.c
index a780a85..bcc4adb 100644
--- a/libgit2-glib/ggit-remote-callbacks.c
+++ b/libgit2-glib/ggit-remote-callbacks.c
@@ -285,10 +285,10 @@ ggit_remote_callbacks_init (GgitRemoteCallbacks *self)
self->priv->native.payload = self;
}
-git_remote_callbacks
+git_remote_callbacks *
_ggit_remote_callbacks_get_native (GgitRemoteCallbacks *self)
{
- return self->priv->native;
+ return &self->priv->native;
}
/* ex:set ts=8 noet: */
diff --git a/libgit2-glib/ggit-remote-callbacks.h b/libgit2-glib/ggit-remote-callbacks.h
index 350d34b..c8c42d4 100644
--- a/libgit2-glib/ggit-remote-callbacks.h
+++ b/libgit2-glib/ggit-remote-callbacks.h
@@ -78,9 +78,9 @@ struct _GgitRemoteCallbacksClass
GError **error);
};
-GType ggit_remote_callbacks_get_type (void) G_GNUC_CONST;
+GType ggit_remote_callbacks_get_type (void) G_GNUC_CONST;
-git_remote_callbacks _ggit_remote_callbacks_get_native (GgitRemoteCallbacks *remote_cbs);
+git_remote_callbacks *_ggit_remote_callbacks_get_native (GgitRemoteCallbacks *remote_cbs);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]