[libgit2-glib] Update reflog to new api.



commit bb0c3bf0b139f2fb19e302850097362caccfc653
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Dec 4 13:43:53 2012 +0100

    Update reflog to new api.

 libgit2-glib/ggit-reflog-entry.c |   16 ++++++++--------
 libgit2-glib/ggit-reflog-entry.h |    4 ++--
 libgit2-glib/ggit-signature.c    |   10 +++++-----
 libgit2-glib/ggit-signature.h    |   30 +++++++++++++++---------------
 4 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/libgit2-glib/ggit-reflog-entry.c b/libgit2-glib/ggit-reflog-entry.c
index 362f60e..3682926 100644
--- a/libgit2-glib/ggit-reflog-entry.c
+++ b/libgit2-glib/ggit-reflog-entry.c
@@ -82,7 +82,7 @@ ggit_reflog_entry_unref (GgitReflogEntry *reflog_entry)
 }
 
 /**
- * ggit_reflog_entry_get_old_oid:
+ * ggit_reflog_entry_get_old_id:
  * @reflog_entry: a #GgitReflogEntry.
  *
  * Gets the old #GgitOId.
@@ -90,19 +90,19 @@ ggit_reflog_entry_unref (GgitReflogEntry *reflog_entry)
  * Returns: the old oid.
  */
 GgitOId *
-ggit_reflog_entry_get_old_oid (GgitReflogEntry *reflog_entry)
+ggit_reflog_entry_get_old_id (GgitReflogEntry *reflog_entry)
 {
 	const git_oid *oid;
 
 	g_return_val_if_fail (reflog_entry != NULL, NULL);
 
-	oid = git_reflog_entry_oidold (reflog_entry->reflog_entry);
+	oid = git_reflog_entry_id_old (reflog_entry->reflog_entry);
 
 	return _ggit_oid_wrap (oid);
 }
 
 /**
- * ggit_reflog_entry_get_new_oid:
+ * ggit_reflog_entry_get_new_id:
  * @reflog_entry: a #GgitReflogEntry.
  *
  * Gets the new #GgitOId.
@@ -110,13 +110,13 @@ ggit_reflog_entry_get_old_oid (GgitReflogEntry *reflog_entry)
  * Returns: the new oid.
  */
 GgitOId *
-ggit_reflog_entry_get_new_oid (GgitReflogEntry *reflog_entry)
+ggit_reflog_entry_get_new_id (GgitReflogEntry *reflog_entry)
 {
 	const git_oid *oid;
 
 	g_return_val_if_fail (reflog_entry != NULL, NULL);
 
-	oid = git_reflog_entry_oidnew (reflog_entry->reflog_entry);
+	oid = git_reflog_entry_id_new (reflog_entry->reflog_entry);
 
 	return _ggit_oid_wrap (oid);
 }
@@ -132,7 +132,7 @@ ggit_reflog_entry_get_new_oid (GgitReflogEntry *reflog_entry)
 GgitSignature *
 ggit_reflog_entry_get_committer (GgitReflogEntry *reflog_entry)
 {
-	git_signature *committer;
+	const git_signature *committer;
 
 	g_return_val_if_fail (reflog_entry != NULL, NULL);
 
@@ -154,7 +154,7 @@ ggit_reflog_entry_get_message (GgitReflogEntry *reflog_entry)
 {
 	g_return_val_if_fail (reflog_entry != NULL, NULL);
 
-	return git_reflog_entry_msg (reflog_entry->reflog_entry);
+	return git_reflog_entry_message (reflog_entry->reflog_entry);
 }
 
 /* ex:set ts=8 noet: */
diff --git a/libgit2-glib/ggit-reflog-entry.h b/libgit2-glib/ggit-reflog-entry.h
index 856baa2..5a45b41 100644
--- a/libgit2-glib/ggit-reflog-entry.h
+++ b/libgit2-glib/ggit-reflog-entry.h
@@ -37,8 +37,8 @@ GgitReflogEntry  *_ggit_reflog_entry_wrap          (const git_reflog_entry *refl
 GgitReflogEntry  *ggit_reflog_entry_ref            (GgitReflogEntry        *reflog_entry);
 void              ggit_reflog_entry_unref          (GgitReflogEntry        *reflog_entry);
 
-GgitOId          *ggit_reflog_entry_get_old_oid    (GgitReflogEntry        *reflog_entry);
-GgitOId          *ggit_reflog_entry_get_new_oid    (GgitReflogEntry        *reflog_entry);
+GgitOId          *ggit_reflog_entry_get_old_id     (GgitReflogEntry        *reflog_entry);
+GgitOId          *ggit_reflog_entry_get_new_id     (GgitReflogEntry        *reflog_entry);
 GgitSignature    *ggit_reflog_entry_get_committer  (GgitReflogEntry        *reflog_entry);
 const gchar      *ggit_reflog_entry_get_message    (GgitReflogEntry        *reflog_entry);
 
diff --git a/libgit2-glib/ggit-signature.c b/libgit2-glib/ggit-signature.c
index 11d8b4e..4427de1 100644
--- a/libgit2-glib/ggit-signature.c
+++ b/libgit2-glib/ggit-signature.c
@@ -125,9 +125,9 @@ ggit_signature_init (GgitSignature *self)
 }
 
 GgitSignature *
-_ggit_signature_wrap (git_signature *signature,
-                      const gchar   *encoding,
-                      gboolean       owned)
+_ggit_signature_wrap (const git_signature *signature,
+                      const gchar         *encoding,
+                      gboolean             owned)
 {
 	GgitSignature *ret;
 
@@ -136,12 +136,12 @@ _ggit_signature_wrap (git_signature *signature,
 	if (owned)
 	{
 		_ggit_native_set (ret,
-		                  signature,
+		                  (gpointer)signature,
 		                  (GDestroyNotify)git_signature_free);
 	}
 	else
 	{
-		_ggit_native_set (ret, signature, NULL);
+		_ggit_native_set (ret, (gpointer)signature, NULL);
 	}
 
 	return ret;
diff --git a/libgit2-glib/ggit-signature.h b/libgit2-glib/ggit-signature.h
index 49d9f96..c990ff5 100644
--- a/libgit2-glib/ggit-signature.h
+++ b/libgit2-glib/ggit-signature.h
@@ -58,27 +58,27 @@ struct _GgitSignatureClass
 
 GType                 ggit_signature_get_type          (void) G_GNUC_CONST;
 
-GgitSignature        *_ggit_signature_wrap             (git_signature *signature,
-                                                        const gchar   *encoding,
-                                                        gboolean       owned);
+GgitSignature        *_ggit_signature_wrap             (const git_signature *signature,
+                                                        const gchar         *encoding,
+                                                        gboolean             owned);
 
-GgitSignature        *ggit_signature_new               (const gchar    *name,
-                                                        const gchar    *email,
-                                                        GDateTime      *signature_time,
-                                                        GTimeZone      *signature_time_zone,
-                                                        GError        **error);
+GgitSignature        *ggit_signature_new               (const gchar         *name,
+                                                        const gchar         *email,
+                                                        GDateTime           *signature_time,
+                                                        GTimeZone           *signature_time_zone,
+                                                        GError             **error);
 
-GgitSignature        *ggit_signature_new_now           (const gchar    *name,
-                                                        const gchar    *email,
-                                                        GError        **error);
+GgitSignature        *ggit_signature_new_now           (const gchar         *name,
+                                                        const gchar         *email,
+                                                        GError             **error);
 
-const gchar          *ggit_signature_get_name          (GgitSignature  *signature);
+const gchar          *ggit_signature_get_name          (GgitSignature       *signature);
 
-const gchar          *ggit_signature_get_email         (GgitSignature  *signature);
+const gchar          *ggit_signature_get_email         (GgitSignature       *signature);
 
-GDateTime            *ggit_signature_get_time          (GgitSignature  *signature);
+GDateTime            *ggit_signature_get_time          (GgitSignature       *signature);
 
-GTimeZone            *ggit_signature_get_time_zone     (GgitSignature  *signature);
+GTimeZone            *ggit_signature_get_time_zone     (GgitSignature       *signature);
 
 G_END_DECLS
 



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