[gnome-builder] runtime: add IdeRuntimeError
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] runtime: add IdeRuntimeError
- Date: Sun, 17 Jul 2016 10:21:59 +0000 (UTC)
commit d51f3ffdcdf4122fc96fa8328a2cdd1ce09bc1da
Author: Christian Hergert <chergert redhat com>
Date: Sun Jul 17 02:33:09 2016 -0700
runtime: add IdeRuntimeError
libide/runtimes/ide-runtime.c | 11 +++++++++++
libide/runtimes/ide-runtime.h | 6 ++++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libide/runtimes/ide-runtime.c b/libide/runtimes/ide-runtime.c
index a67f9d1..e0fc95e 100644
--- a/libide/runtimes/ide-runtime.c
+++ b/libide/runtimes/ide-runtime.c
@@ -407,3 +407,14 @@ ide_runtime_prepare_configuration (IdeRuntime *self,
IDE_RUNTIME_GET_CLASS (self)->prepare_configuration (self, configuration);
}
+
+GQuark
+ide_runtime_error_quark (void)
+{
+ static GQuark quark = 0;
+
+ if G_UNLIKELY (quark == 0)
+ quark = g_quark_from_static_string ("ide_runtime_error_quark");
+
+ return quark;
+}
diff --git a/libide/runtimes/ide-runtime.h b/libide/runtimes/ide-runtime.h
index daa0fe0..09196c9 100644
--- a/libide/runtimes/ide-runtime.h
+++ b/libide/runtimes/ide-runtime.h
@@ -27,7 +27,13 @@
G_BEGIN_DECLS
+typedef enum
+{
+ IDE_RUNTIME_ERROR_NO_SUCH_RUNTIME = 1,
+} IdeRuntimeError;
+
#define IDE_TYPE_RUNTIME (ide_runtime_get_type())
+#define IDE_RUNTIME_ERROR (ide_runtime_error_quark())
G_DECLARE_DERIVABLE_TYPE (IdeRuntime, ide_runtime, IDE, RUNTIME, IdeObject)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]