Blame libvirt-glib/libvirt-glib-error.h

Packit Service ea0369
/*
Packit Service ea0369
 * libvirt-glib-error.h: libvirt glib integration
Packit Service ea0369
 *
Packit Service ea0369
 * Copyright (C) 2008 Daniel P. Berrange
Packit Service ea0369
 * Copyright (C) 2010-2011 Red Hat, Inc.
Packit Service ea0369
 *
Packit Service ea0369
 * This library is free software; you can redistribute it and/or
Packit Service ea0369
 * modify it under the terms of the GNU Lesser General Public
Packit Service ea0369
 * License as published by the Free Software Foundation; either
Packit Service ea0369
 * version 2.1 of the License, or (at your option) any later version.
Packit Service ea0369
 *
Packit Service ea0369
 * This library is distributed in the hope that it will be useful,
Packit Service ea0369
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service ea0369
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service ea0369
 * Lesser General Public License for more details.
Packit Service ea0369
 *
Packit Service ea0369
 * You should have received a copy of the GNU Lesser General Public
Packit Service ea0369
 * License along with this library. If not, see
Packit Service ea0369
 * <http://www.gnu.org/licenses/>.
Packit Service ea0369
 *
Packit Service ea0369
 * Author: Daniel P. Berrange <berrange@redhat.com>
Packit Service ea0369
 */
Packit Service ea0369
Packit Service ea0369
#ifndef __LIBVIRT_GLIB_ERROR_H__
Packit Service ea0369
#define __LIBVIRT_GLIB_ERROR_H__
Packit Service ea0369
Packit Service ea0369
#include <glib.h>
Packit Service ea0369
Packit Service ea0369
G_BEGIN_DECLS
Packit Service ea0369
Packit Service ea0369
GError *gvir_error_new(GQuark domain,
Packit Service ea0369
                       gint code,
Packit Service ea0369
                       const gchar *format,
Packit Service ea0369
                       ...) G_GNUC_PRINTF(3, 4);
Packit Service ea0369
Packit Service ea0369
GError *gvir_error_new_literal(GQuark domain,
Packit Service ea0369
                               gint code,
Packit Service ea0369
                               const gchar *message);
Packit Service ea0369
Packit Service ea0369
GError *gvir_error_new_valist(GQuark domain,
Packit Service ea0369
                              gint code,
Packit Service ea0369
                              const gchar *format,
Packit Service ea0369
                              va_list args) G_GNUC_PRINTF(3, 0);
Packit Service ea0369
Packit Service ea0369
void gvir_set_error(GError **error,
Packit Service ea0369
                    GQuark domain,
Packit Service ea0369
                    gint code,
Packit Service ea0369
                    const gchar *format,
Packit Service ea0369
                    ...) G_GNUC_PRINTF(4, 5);
Packit Service ea0369
Packit Service ea0369
void gvir_set_error_literal(GError **error,
Packit Service ea0369
                            GQuark domain,
Packit Service ea0369
                            gint code,
Packit Service ea0369
                            const gchar *message);
Packit Service ea0369
Packit Service ea0369
void gvir_set_error_valist(GError **error,
Packit Service ea0369
                           GQuark domain,
Packit Service ea0369
                           gint code,
Packit Service ea0369
                           const gchar *format,
Packit Service ea0369
                           va_list args) G_GNUC_PRINTF(4, 0);
Packit Service ea0369
Packit Service ea0369
void gvir_critical(const gchar *format, ...) G_GNUC_PRINTF(1, 2);
Packit Service ea0369
void gvir_warning(const gchar *format, ...) G_GNUC_PRINTF(1, 2);
Packit Service ea0369
Packit Service ea0369
G_END_DECLS
Packit Service ea0369
Packit Service ea0369
#endif /* __LIBVIRT_GLIB_ERROR_H__ */