[libgit2-glib/wip/albfan/push-callbacks] Standardize push callbacks
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/albfan/push-callbacks] Standardize push callbacks
- Date: Tue, 23 Apr 2019 21:48:22 +0000 (UTC)
commit 7dc0facc7e03b4f7993567ad7feec569b9c771bf
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Tue Apr 23 23:47:56 2019 +0200
Standardize push callbacks
libgit2-glib/ggit-push-options.c | 12 ++++++------
libgit2-glib/ggit-push-options.h | 17 ++++++++---------
2 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/libgit2-glib/ggit-push-options.c b/libgit2-glib/ggit-push-options.c
index c40d8d5..2125461 100644
--- a/libgit2-glib/ggit-push-options.c
+++ b/libgit2-glib/ggit-push-options.c
@@ -58,7 +58,7 @@ ggit_push_options_set_property (GObject *object,
priv->options.pb_parallelism = g_value_get_int (value);
break;
case PROP_CALLBACKS:
- ggit_push_options_set_callbacks(options,
+ ggit_push_options_set_remote_callbacks(options,
g_value_get_object (value));
break;
default:
@@ -210,7 +210,7 @@ ggit_push_options_set_parallelism (GgitPushOptions *options,
}
/**
- * ggit_push_options_set_callbacks:
+ * ggit_push_options_set_remote_callbacks:
* @options: a #GgitPushOptions.
* @callbacks: the #GgitRemoteCallbacks
*
@@ -218,8 +218,8 @@ ggit_push_options_set_parallelism (GgitPushOptions *options,
*
**/
void
-ggit_push_options_set_callbacks (GgitPushOptions *options,
- GgitRemoteCallbacks *callbacks)
+ggit_push_options_set_remote_callbacks (GgitPushOptions *options,
+ GgitRemoteCallbacks *callbacks)
{
GgitPushOptionsPrivate *priv;
@@ -236,7 +236,7 @@ ggit_push_options_set_callbacks (GgitPushOptions *options,
}
/**
- * ggit_push_options_get_callbacks:
+ * ggit_push_options_get_remote_callbacks:
* @options: a #GgitPushOptions.
*
* gets the remote callbacks object
@@ -245,7 +245,7 @@ ggit_push_options_set_callbacks (GgitPushOptions *options,
*
**/
GgitRemoteCallbacks*
-ggit_push_options_get_callbacks (GgitPushOptions *options)
+ggit_push_options_get_remote_callbacks (GgitPushOptions *options)
{
GgitPushOptionsPrivate *priv;
diff --git a/libgit2-glib/ggit-push-options.h b/libgit2-glib/ggit-push-options.h
index 9bd9d72..948a30e 100644
--- a/libgit2-glib/ggit-push-options.h
+++ b/libgit2-glib/ggit-push-options.h
@@ -38,18 +38,17 @@ struct _GgitPushOptionsClass
};
const git_push_options *
- _ggit_push_options_get_push_options (
- GgitPushOptions *options);
+ _ggit_push_options_get_push_options (GgitPushOptions *options);
-GgitPushOptions *ggit_push_options_new (void);
+GgitPushOptions *ggit_push_options_new (void);
-gint ggit_push_options_get_parallelism (GgitPushOptions *options);
-void ggit_push_options_set_parallelism (GgitPushOptions *options,
- gint parallelism);
+gint ggit_push_options_get_parallelism (GgitPushOptions *options);
+void ggit_push_options_set_parallelism (GgitPushOptions *options,
+ gint parallelism);
-GgitRemoteCallbacks * ggit_push_options_get_callbacks (GgitPushOptions *options);
-void ggit_push_options_set_callbacks (GgitPushOptions *options,
- GgitRemoteCallbacks *callbacks);
+GgitRemoteCallbacks * ggit_push_options_get_remote_callbacks (GgitPushOptions *options);
+void ggit_push_options_set_remote_callbacks (GgitPushOptions *options,
+ GgitRemoteCallbacks *callbacks);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]