[gnome-builder] build-result: add literal helpers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-result: add literal helpers
- Date: Fri, 28 Oct 2016 11:17:17 +0000 (UTC)
commit bb86767ed6516d151dd7d0929d20eb1934f5cc3f
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 28 04:17:03 2016 -0700
build-result: add literal helpers
The normal logging functions are not introspectable, which makes it
difficult to log things from Python.
libide/buildsystem/ide-build-result.c | 14 ++++++++++++++
libide/buildsystem/ide-build-result.h | 4 ++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-result.c b/libide/buildsystem/ide-build-result.c
index c21f8bc..de64ed8 100644
--- a/libide/buildsystem/ide-build-result.c
+++ b/libide/buildsystem/ide-build-result.c
@@ -212,6 +212,13 @@ ide_build_result_log_stdout (IdeBuildResult *self,
}
void
+ide_build_result_log_stdout_literal (IdeBuildResult *self,
+ const gchar *str)
+{
+ ide_build_result_log_stdout (self, "%s", str);
+}
+
+void
ide_build_result_log_stderr (IdeBuildResult *self,
const gchar *format,
...)
@@ -237,6 +244,13 @@ ide_build_result_log_stderr (IdeBuildResult *self,
}
}
+void
+ide_build_result_log_stderr_literal (IdeBuildResult *self,
+ const gchar *str)
+{
+ ide_build_result_log_stderr (self, "%s", str);
+}
+
/**
* ide_build_result_get_stderr_stream:
*
diff --git a/libide/buildsystem/ide-build-result.h b/libide/buildsystem/ide-build-result.h
index 6df1e7e..8fe8bec 100644
--- a/libide/buildsystem/ide-build-result.h
+++ b/libide/buildsystem/ide-build-result.h
@@ -79,6 +79,10 @@ void ide_build_result_log_stdout (IdeBuildResult *result,
void ide_build_result_log_stderr (IdeBuildResult *result,
const gchar *format,
...) G_GNUC_PRINTF (2, 3);
+void ide_build_result_log_stdout_literal(IdeBuildResult *result,
+ const gchar *str);
+void ide_build_result_log_stderr_literal(IdeBuildResult *result,
+ const gchar *str);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]