[libgit2-glib] Fix diff wrapping
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix diff wrapping
- Date: Sat, 29 Sep 2012 11:50:24 +0000 (UTC)
commit dd7500f8c4fd0850a97b089eae443208e8523b8f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Sep 29 13:39:43 2012 +0200
Fix diff wrapping
libgit2-glib/ggit-diff-delta.c | 2 +-
libgit2-glib/ggit-diff-delta.h | 16 ++++++++--------
libgit2-glib/ggit-diff-file.c | 2 +-
libgit2-glib/ggit-diff-file.h | 16 ++++++++--------
libgit2-glib/ggit-diff-range.c | 2 +-
libgit2-glib/ggit-diff-range.h | 14 +++++++-------
libgit2-glib/ggit-diff.c | 28 ++++++++++++++--------------
7 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-delta.c b/libgit2-glib/ggit-diff-delta.c
index b9ce960..982a4e9 100644
--- a/libgit2-glib/ggit-diff-delta.c
+++ b/libgit2-glib/ggit-diff-delta.c
@@ -39,7 +39,7 @@ G_DEFINE_BOXED_TYPE (GgitDiffDelta, ggit_diff_delta,
ggit_diff_delta_ref, ggit_diff_delta_unref)
GgitDiffDelta *
-_ggit_diff_delta_wrap (git_diff_delta *delta)
+_ggit_diff_delta_wrap (const git_diff_delta *delta)
{
GgitDiffDelta *gdelta;
diff --git a/libgit2-glib/ggit-diff-delta.h b/libgit2-glib/ggit-diff-delta.h
index 7424a5c..66abdef 100644
--- a/libgit2-glib/ggit-diff-delta.h
+++ b/libgit2-glib/ggit-diff-delta.h
@@ -32,16 +32,16 @@ G_BEGIN_DECLS
GType ggit_diff_delta_get_type (void) G_GNUC_CONST;
-GgitDiffDelta *_ggit_diff_delta_wrap (git_diff_delta *delta);
+GgitDiffDelta *_ggit_diff_delta_wrap (const git_diff_delta *delta);
-GgitDiffDelta *ggit_diff_delta_ref (GgitDiffDelta *delta);
-void ggit_diff_delta_unref (GgitDiffDelta *delta);
+GgitDiffDelta *ggit_diff_delta_ref (GgitDiffDelta *delta);
+void ggit_diff_delta_unref (GgitDiffDelta *delta);
-GgitDiffFile *ggit_diff_delta_get_old_file (GgitDiffDelta *delta);
-GgitDiffFile *ggit_diff_delta_get_new_file (GgitDiffDelta *delta);
-GgitDeltaType ggit_diff_delta_get_status (GgitDiffDelta *delta);
-guint ggit_diff_delta_get_similarity (GgitDiffDelta *delta);
-gint ggit_diff_delta_get_binary (GgitDiffDelta *delta);
+GgitDiffFile *ggit_diff_delta_get_old_file (GgitDiffDelta *delta);
+GgitDiffFile *ggit_diff_delta_get_new_file (GgitDiffDelta *delta);
+GgitDeltaType ggit_diff_delta_get_status (GgitDiffDelta *delta);
+guint ggit_diff_delta_get_similarity (GgitDiffDelta *delta);
+gint ggit_diff_delta_get_binary (GgitDiffDelta *delta);
G_END_DECLS
diff --git a/libgit2-glib/ggit-diff-file.c b/libgit2-glib/ggit-diff-file.c
index 4a13aa8..7cfacde 100644
--- a/libgit2-glib/ggit-diff-file.c
+++ b/libgit2-glib/ggit-diff-file.c
@@ -38,7 +38,7 @@ G_DEFINE_BOXED_TYPE (GgitDiffFile, ggit_diff_file,
ggit_diff_file_ref, ggit_diff_file_unref)
GgitDiffFile *
-_ggit_diff_file_wrap (git_diff_file *file)
+_ggit_diff_file_wrap (const git_diff_file *file)
{
GgitDiffFile *gfile;
diff --git a/libgit2-glib/ggit-diff-file.h b/libgit2-glib/ggit-diff-file.h
index 7466092..a7670c8 100644
--- a/libgit2-glib/ggit-diff-file.h
+++ b/libgit2-glib/ggit-diff-file.h
@@ -32,16 +32,16 @@ G_BEGIN_DECLS
GType ggit_diff_file_get_type (void) G_GNUC_CONST;
-GgitDiffFile *_ggit_diff_file_wrap (git_diff_file *file);
+GgitDiffFile *_ggit_diff_file_wrap (const git_diff_file *file);
-GgitDiffFile *ggit_diff_file_ref (GgitDiffFile *file);
-void ggit_diff_file_unref (GgitDiffFile *file);
+GgitDiffFile *ggit_diff_file_ref (GgitDiffFile *file);
+void ggit_diff_file_unref (GgitDiffFile *file);
-GgitOId *ggit_diff_file_get_oid (GgitDiffFile *file);
-const gchar *ggit_diff_file_get_path (GgitDiffFile *file);
-guint16 ggit_diff_file_get_mode (GgitDiffFile *file);
-gint64 ggit_diff_file_get_size (GgitDiffFile *file);
-GgitDiffFileFlags ggit_diff_file_get_flags (GgitDiffFile *file);
+GgitOId *ggit_diff_file_get_oid (GgitDiffFile *file);
+const gchar *ggit_diff_file_get_path (GgitDiffFile *file);
+guint16 ggit_diff_file_get_mode (GgitDiffFile *file);
+gint64 ggit_diff_file_get_size (GgitDiffFile *file);
+GgitDiffFileFlags ggit_diff_file_get_flags (GgitDiffFile *file);
G_END_DECLS
diff --git a/libgit2-glib/ggit-diff-range.c b/libgit2-glib/ggit-diff-range.c
index 5355790..a343b42 100644
--- a/libgit2-glib/ggit-diff-range.c
+++ b/libgit2-glib/ggit-diff-range.c
@@ -37,7 +37,7 @@ G_DEFINE_BOXED_TYPE (GgitDiffRange, ggit_diff_range,
GgitDiffRange *
-_ggit_diff_range_wrap (git_diff_range *range)
+_ggit_diff_range_wrap (const git_diff_range *range)
{
GgitDiffRange *grange;
diff --git a/libgit2-glib/ggit-diff-range.h b/libgit2-glib/ggit-diff-range.h
index 7367969..93f3742 100644
--- a/libgit2-glib/ggit-diff-range.h
+++ b/libgit2-glib/ggit-diff-range.h
@@ -30,15 +30,15 @@ G_BEGIN_DECLS
GType ggit_diff_range_get_type (void) G_GNUC_CONST;
-GgitDiffRange *_ggit_diff_range_wrap (git_diff_range *range);
+GgitDiffRange *_ggit_diff_range_wrap (const git_diff_range *range);
-GgitDiffRange *ggit_diff_range_ref (GgitDiffRange *range);
-void ggit_diff_range_unref (GgitDiffRange *range);
+GgitDiffRange *ggit_diff_range_ref (GgitDiffRange *range);
+void ggit_diff_range_unref (GgitDiffRange *range);
-gint ggit_diff_range_get_old_start (GgitDiffRange *range);
-gint ggit_diff_range_get_old_lines (GgitDiffRange *range);
-gint ggit_diff_range_get_new_start (GgitDiffRange *range);
-gint ggit_diff_range_get_new_lines (GgitDiffRange *range);
+gint ggit_diff_range_get_old_start (GgitDiffRange *range);
+gint ggit_diff_range_get_old_lines (GgitDiffRange *range);
+gint ggit_diff_range_get_new_start (GgitDiffRange *range);
+gint ggit_diff_range_get_new_lines (GgitDiffRange *range);
G_END_DECLS
diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
index fe61de6..80070a0 100644
--- a/libgit2-glib/ggit-diff.c
+++ b/libgit2-glib/ggit-diff.c
@@ -38,9 +38,9 @@ typedef struct {
G_DEFINE_TYPE (GgitDiff, ggit_diff, GGIT_TYPE_NATIVE)
static gint
-ggit_diff_file_callback_wrapper (gpointer user_data,
- git_diff_delta *delta,
- gfloat progress)
+ggit_diff_file_callback_wrapper (gpointer user_data,
+ const git_diff_delta *delta,
+ gfloat progress)
{
CallbackWrapperData *data = user_data;
GgitDiffDelta *gdelta;
@@ -56,11 +56,11 @@ ggit_diff_file_callback_wrapper (gpointer user_data,
}
static gint
-ggit_diff_hunk_callback_wrapper (gpointer user_data,
- git_diff_delta *delta,
- git_diff_range *range,
- const gchar *header,
- gsize header_len)
+ggit_diff_hunk_callback_wrapper (gpointer user_data,
+ const git_diff_delta *delta,
+ const git_diff_range *range,
+ const gchar *header,
+ gsize header_len)
{
CallbackWrapperData *data = user_data;
GgitDiffDelta *gdelta;
@@ -80,12 +80,12 @@ ggit_diff_hunk_callback_wrapper (gpointer user_data,
}
static gint
-ggit_diff_line_callback_wrapper (gpointer user_data,
- git_diff_delta *delta,
- git_diff_range *range,
- gchar line_type,
- const gchar *content,
- gsize content_len)
+ggit_diff_line_callback_wrapper (gpointer user_data,
+ const git_diff_delta *delta,
+ const git_diff_range *range,
+ gchar line_type,
+ const gchar *content,
+ gsize content_len)
{
CallbackWrapperData *data = user_data;
GgitDiffDelta *gdelta;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]