summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-util.h
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-03-18 17:49:38 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-03-23 19:32:02 +0100
commit1bcd8d0fe6df553f087d11b539a59e128a2a350b (patch)
tree6198cf3b2846ce059fd6a0e5a6434894e8d7a544 /src/virt-viewer-util.h
parentaec2248cf86cacfc8950f48ccf0fc8fcaa261908 (diff)
downloadvirt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.tar.gz
virt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.tar.xz
virt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.zip
Exit normally when canceling dialog
This applies for: libvirt authentication dialog (e.g. virt-viewer --attach guest) 'recent connection' dialog (e.g. remote-viewer) 'vm choose' dialog when connecting without specifying the vm name This is done by using a new GError VIRT_VIEWER_ERROR_CANCELLED.
Diffstat (limited to 'src/virt-viewer-util.h')
-rw-r--r--src/virt-viewer-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/virt-viewer-util.h b/src/virt-viewer-util.h
index 1df81a5..2226bf5 100644
--- a/src/virt-viewer-util.h
+++ b/src/virt-viewer-util.h
@@ -30,6 +30,7 @@ extern gboolean doDebug;
enum {
VIRT_VIEWER_ERROR_FAILED,
+ VIRT_VIEWER_ERROR_CANCELLED,
};
#define VIRT_VIEWER_ERROR virt_viewer_error_quark ()