[virt-tools-list] [PATCHv2 1/4] Add VIRT_VIEWER_ERROR GError

Marc-André Lureau marcandre.lureau at gmail.com
Fri Mar 8 14:15:34 UTC 2013


---
 src/virt-viewer-util.c | 6 ++++++
 src/virt-viewer-util.h | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
index 48a6978..f0b1182 100644
--- a/src/virt-viewer-util.c
+++ b/src/virt-viewer-util.c
@@ -41,6 +41,12 @@
 
 #include "virt-viewer-util.h"
 
+GQuark
+virt_viewer_error_quark(void)
+{
+  return g_quark_from_static_string ("virt-viewer-error-quark");
+}
+
 GtkBuilder *virt_viewer_util_load_ui(const char *name)
 {
     struct stat sb;
diff --git a/src/virt-viewer-util.h b/src/virt-viewer-util.h
index 43e3017..fc56310 100644
--- a/src/virt-viewer-util.h
+++ b/src/virt-viewer-util.h
@@ -28,9 +28,16 @@
 
 extern gboolean doDebug;
 
+enum {
+    VIRT_VIEWER_ERROR_FAILED,
+};
+
 #define DEBUG_LOG(s, ...) do { if (doDebug) g_debug(s, ## __VA_ARGS__); } while (0)
 #define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
 
+#define VIRT_VIEWER_ERROR virt_viewer_error_quark ()
+
+GQuark virt_viewer_error_quark(void);
 
 void virt_viewer_util_init(const char *appname);
 
-- 
1.8.1.1.439.g50a6b54




More information about the virt-tools-list mailing list