[gnome-builder/wip/chergert/multi-process: 46/58] 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: 46/58] log: add API to get current verbosity
- Date: Thu, 29 Oct 2015 00:38:11 +0000 (UTC)
commit aa8bc9279e457e63cb37392eb6f297eee6ee004a
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 cf86090..4387d4e 100644
--- a/libide/ide-log.c
+++ b/libide/ide-log.c
@@ -267,3 +267,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]