[gnome-builder/wip/chergert/multi-process] log: add API to get current verbosity
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/multi-process] log: add API to get current verbosity
- Date: Wed, 21 Oct 2015 01:30:44 +0000 (UTC)
commit c71f24af84e7a8e3e08c2a20db938e6dfca12acf
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 20 18:23:49 2015 -0700
log: add API to get current verbosity
libide/ide-log.c | 6 ++++++
libide/ide-log.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-log.c b/libide/ide-log.c
index 4d6f33c..92ef33b 100644
--- a/libide/ide-log.c
+++ b/libide/ide-log.c
@@ -268,3 +268,9 @@ ide_log_increase_verbosity (void)
{
log_verbosity++;
}
+
+gint
+ide_log_get_verbosity (void)
+{
+ return log_verbosity;
+}
diff --git a/libide/ide-log.h b/libide/ide-log.h
index 052e348..f2335dc 100644
--- a/libide/ide-log.h
+++ b/libide/ide-log.h
@@ -26,6 +26,7 @@ G_BEGIN_DECLS
void ide_log_init (gboolean stdout_,
const gchar *filename);
void ide_log_increase_verbosity (void);
+gint ide_log_get_verbosity (void);
void ide_log_shutdown (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]