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

Hans de Goede hdegoede at redhat.com
Fri Mar 8 08:14:47 UTC 2013


ACK.

On 03/07/2013 08:55 PM, Marc-André Lureau wrote:
> ---
>   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);
>
>




More information about the virt-tools-list mailing list