diff options
| author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-03-07 20:10:49 +0100 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-03-08 16:54:01 +0100 |
| commit | ef9b142dd96daed2990249054d52fee9da03d9a0 (patch) | |
| tree | cdf3543f5e0bf02b934e6d7ea7ca08808c30ca3b /src | |
| parent | b529b605257b9d232b47775412827b325c24e889 (diff) | |
Add VIRT_VIEWER_ERROR GError
Diffstat (limited to 'src')
| -rw-r--r-- | src/virt-viewer-util.c | 6 | ||||
| -rw-r--r-- | src/virt-viewer-util.h | 7 |
2 files changed, 13 insertions, 0 deletions
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); |
