[vte] all: Add feature string



commit 117f65e672bf2a37f0c7e9f476c50be3fa095a6b
Author: Christian Persch <chpe gnome org>
Date:   Tue Jan 20 17:59:53 2015 +0100

    all: Add feature string

 doc/reference/vte-sections.txt |    1 +
 src/vte.c                      |   19 +++++++++++++++++++
 src/vteglobals.h               |    2 ++
 3 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index b440eb3..745d8f1 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -75,6 +75,7 @@ vte_terminal_search_set_wrap_around
 
 <SUBSECTION>
 vte_get_user_shell
+vet_get_features
 
 <SUBSECTION>
 vte_terminal_spawn_sync
diff --git a/src/vte.c b/src/vte.c
index ec6378a..0685bf2 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3527,6 +3527,25 @@ vte_get_user_shell (void)
 }
 
 /**
+ * vte_get_features:
+ *
+ * Gets a list of features vte was compiled with.
+ *
+ * Returns: (transfer none): a string with features
+ */
+const char *
+vte_get_features (void)
+{
+        return
+#ifdef WITH_GNUTLS
+                "+GNUTLS"
+#else
+                "-GNUTLS"
+#endif
+                ;
+}
+
+/**
  * vte_terminal_spawn_sync:
  * @terminal: a #VteTerminal
  * @pty_flags: flags from #VtePtyFlags
diff --git a/src/vteglobals.h b/src/vteglobals.h
index b6abe2b..bda3bbd 100644
--- a/src/vteglobals.h
+++ b/src/vteglobals.h
@@ -25,6 +25,8 @@ G_BEGIN_DECLS
 
 char *vte_get_user_shell(void);
 
+const char *vte_get_features (void);
+
 G_END_DECLS
 
 #endif /* __VTE_VTE_GLOBALS_H__ */


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