[libgit2-glib/wip/development: 6/12] ggit_get_capabilities is now ggit_get_features
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/development: 6/12] ggit_get_capabilities is now ggit_get_features
- Date: Sat, 26 Apr 2014 14:15:17 +0000 (UTC)
commit 91db08d3bd25dabe967865894ee8645e6e661d11
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Apr 26 15:40:01 2014 +0200
ggit_get_capabilities is now ggit_get_features
libgit2-glib/ggit-main.c | 12 ++++++------
libgit2-glib/ggit-main.h | 2 +-
libgit2-glib/ggit-types.c | 5 +++--
libgit2-glib/ggit-types.h | 7 ++++---
4 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/libgit2-glib/ggit-main.c b/libgit2-glib/ggit-main.c
index 0842c75..be539a7 100644
--- a/libgit2-glib/ggit-main.c
+++ b/libgit2-glib/ggit-main.c
@@ -23,16 +23,16 @@
#include "ggit-main.h"
/**
- * ggit_get_capabilities:
+ * ggit_get_features:
*
- * Gets the capabilities of the library.
+ * Gets the features of the library.
*
- * Returns: a #GgitCapFlags.
+ * Returns: a #GgitFeatureFlags.
*/
-GgitCapFlags
-ggit_get_capabilities (void)
+GgitFeatureFlags
+ggit_get_features (void)
{
- return git_libgit2_capabilities ();
+ return git_libgit2_features ();
}
/**
diff --git a/libgit2-glib/ggit-main.h b/libgit2-glib/ggit-main.h
index bcba0be..7b56be9 100644
--- a/libgit2-glib/ggit-main.h
+++ b/libgit2-glib/ggit-main.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
-GgitCapFlags ggit_get_capabilities (void);
+GgitFeatureFlags ggit_get_features (void);
void ggit_init (void);
diff --git a/libgit2-glib/ggit-types.c b/libgit2-glib/ggit-types.c
index 66158c8..d63b476 100644
--- a/libgit2-glib/ggit-types.c
+++ b/libgit2-glib/ggit-types.c
@@ -30,8 +30,9 @@
ASSERT_ENUM (GGIT_BRANCH_LOCAL, GIT_BRANCH_LOCAL);
ASSERT_ENUM (GGIT_BRANCH_REMOTE, GIT_BRANCH_REMOTE);
-ASSERT_ENUM (GGIT_CAP_THREADS, GIT_CAP_THREADS);
-ASSERT_ENUM (GGIT_CAP_HTTPS, GIT_CAP_HTTPS);
+ASSERT_ENUM (GGIT_FEATURE_THREADS, GIT_FEATURE_THREADS);
+ASSERT_ENUM (GGIT_FEATURE_HTTPS, GIT_FEATURE_HTTPS);
+ASSERT_ENUM (GGIT_FEATURE_SSH, GIT_FEATURE_SSH);
ASSERT_ENUM (GGIT_CONFIG_LEVEL_SYSTEM, GIT_CONFIG_LEVEL_SYSTEM);
ASSERT_ENUM (GGIT_CONFIG_LEVEL_XDG, GIT_CONFIG_LEVEL_XDG);
diff --git a/libgit2-glib/ggit-types.h b/libgit2-glib/ggit-types.h
index 66e6247..a3ea0af 100644
--- a/libgit2-glib/ggit-types.h
+++ b/libgit2-glib/ggit-types.h
@@ -398,9 +398,10 @@ typedef enum
typedef enum
{
- GGIT_CAP_THREADS = 1 << 0,
- GGIT_CAP_HTTPS = 1 << 1
-} GgitCapFlags;
+ GGIT_FEATURE_THREADS = 1 << 0,
+ GGIT_FEATURE_HTTPS = 1 << 1,
+ GGIT_FEATURE_SSH = (1 << 2)
+} GgitFeatureFlags;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]