Blame libvirt-gobject/libvirt-gobject-compat.h

Packit a07778
/*
Packit a07778
 * libvirt-gobject-compat.h: libvirt gobject integration
Packit a07778
 *
Packit a07778
 * Copyright (C) 2011 Red Hat, Inc.
Packit a07778
 *
Packit a07778
 * This library is free software; you can redistribute it and/or
Packit a07778
 * modify it under the terms of the GNU Lesser General Public
Packit a07778
 * License as published by the Free Software Foundation; either
Packit a07778
 * version 2.1 of the License, or (at your option) any later version.
Packit a07778
 *
Packit a07778
 * This library is distributed in the hope that it will be useful,
Packit a07778
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a07778
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a07778
 * Lesser General Public License for more details.
Packit a07778
 *
Packit a07778
 * You should have received a copy of the GNU Lesser General Public
Packit a07778
 * License along with this library. If not, see
Packit a07778
 * <http://www.gnu.org/licenses/>.
Packit a07778
 *
Packit a07778
 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Packit a07778
 */
Packit a07778
Packit a07778
#ifndef __LIBVIRT_GOBJECT_COMPAT_H__
Packit a07778
#define __LIBVIRT_GOBJECT_COMPAT_H__
Packit a07778
Packit a07778
#include <glib-object.h>
Packit a07778
#include <gio/gio.h>
Packit a07778
Packit a07778
#if GLIB_CHECK_VERSION(2, 31, 0)
Packit a07778
Packit a07778
void gvir_mutex_free(GMutex *mutex);
Packit a07778
GMutex *gvir_mutex_new(void);
Packit a07778
#define g_mutex_new gvir_mutex_new
Packit a07778
#define g_mutex_free gvir_mutex_free
Packit a07778
Packit a07778
#endif
Packit a07778
Packit a07778
#endif /* __LIBVIRT_GOBJECT_COMPAT_H__ */