Blame tests/test-mock-gio.h

rpm-build 0fba15
/*
rpm-build 0fba15
 * Copyright © 2017 Endless Mobile, Inc.
rpm-build 0fba15
 *
rpm-build 0fba15
 * SPDX-License-Identifier: LGPL-2.0+
rpm-build 0fba15
 *
rpm-build 0fba15
 * This library is free software; you can redistribute it and/or
rpm-build 0fba15
 * modify it under the terms of the GNU Lesser General Public
rpm-build 0fba15
 * License as published by the Free Software Foundation; either
rpm-build 0fba15
 * version 2 of the License, or (at your option) any later version.
rpm-build 0fba15
 *
rpm-build 0fba15
 * This library is distributed in the hope that it will be useful,
rpm-build 0fba15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0fba15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 0fba15
 * Lesser General Public License for more details.
rpm-build 0fba15
 *
rpm-build 0fba15
 * You should have received a copy of the GNU Lesser General Public
rpm-build 0fba15
 * License along with this library; if not, write to the
rpm-build 0fba15
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
rpm-build 0fba15
 * Boston, MA 02111-1307, USA.
rpm-build 0fba15
 *
rpm-build 0fba15
 * Authors:
rpm-build 0fba15
 *  - Philip Withnall <withnall@endlessm.com>
rpm-build 0fba15
 */
rpm-build 0fba15
rpm-build 0fba15
#pragma once
rpm-build 0fba15
rpm-build 0fba15
#include <gio/gio.h>
rpm-build 0fba15
#include <glib.h>
rpm-build 0fba15
#include <glib-object.h>
rpm-build 0fba15
#include <libglnx.h>
rpm-build 0fba15
rpm-build 0fba15
#include "ostree-types.h"
rpm-build 0fba15
rpm-build 0fba15
G_BEGIN_DECLS
rpm-build 0fba15
rpm-build 0fba15
#define OSTREE_TYPE_MOCK_VOLUME_MONITOR (ostree_mock_volume_monitor_get_type ())
rpm-build 0fba15
rpm-build 0fba15
/* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44):
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
G_DECLARE_FINAL_TYPE (OstreeMockVolumeMonitor, ostree_mock_volume_monitor, OSTREE, MOCK_VOLUME_MONITOR, GVolumeMonitor) */
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
GType ostree_mock_volume_monitor_get_type (void);
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
rpm-build 0fba15
typedef struct _OstreeMockVolumeMonitor OstreeMockVolumeMonitor;
rpm-build 0fba15
typedef struct { GVolumeMonitorClass parent_class; } OstreeMockVolumeMonitorClass;
rpm-build 0fba15
rpm-build 0fba15
static inline OstreeMockVolumeMonitor *OSTREE_MOCK_VOLUME_MONITOR (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_mock_volume_monitor_get_type (), OstreeMockVolumeMonitor); }
rpm-build 0fba15
static inline gboolean OSTREE_IS_MOCK_VOLUME_MONITOR (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_mock_volume_monitor_get_type ()); }
rpm-build 0fba15
G_GNUC_END_IGNORE_DEPRECATIONS
rpm-build 0fba15
rpm-build 0fba15
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeMockVolumeMonitor, g_object_unref)
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
GVolumeMonitor *ostree_mock_volume_monitor_new (GList *mounts,
rpm-build 0fba15
                                                GList *volumes);
rpm-build 0fba15
rpm-build 0fba15
#define OSTREE_TYPE_MOCK_VOLUME (ostree_mock_volume_get_type ())
rpm-build 0fba15
rpm-build 0fba15
/* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44):
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
G_DECLARE_FINAL_TYPE (OstreeMockVolume, ostree_mock_volume, OSTREE, MOCK_VOLUME, GObject) */
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
GType ostree_mock_volume_get_type (void);
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
rpm-build 0fba15
typedef struct _OstreeMockVolume OstreeMockVolume;
rpm-build 0fba15
typedef struct { GObjectClass parent_class; } OstreeMockVolumeClass;
rpm-build 0fba15
rpm-build 0fba15
static inline OstreeMockVolume *OSTREE_MOCK_VOLUME (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_mock_volume_get_type (), OstreeMockVolume); }
rpm-build 0fba15
static inline gboolean OSTREE_IS_MOCK_VOLUME (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_mock_volume_get_type ()); }
rpm-build 0fba15
G_GNUC_END_IGNORE_DEPRECATIONS
rpm-build 0fba15
rpm-build 0fba15
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeMockVolume, g_object_unref)
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
OstreeMockVolume *ostree_mock_volume_new (const gchar *name,
rpm-build 0fba15
                                          GDrive      *drive,
rpm-build 0fba15
                                          GMount      *mount);
rpm-build 0fba15
rpm-build 0fba15
#define OSTREE_TYPE_MOCK_DRIVE (ostree_mock_drive_get_type ())
rpm-build 0fba15
rpm-build 0fba15
/* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44):
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
G_DECLARE_FINAL_TYPE (OstreeMockDrive, ostree_mock_drive, OSTREE, MOCK_DRIVE, GObject) */
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
GType ostree_mock_drive_get_type (void);
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
rpm-build 0fba15
typedef struct _OstreeMockDrive OstreeMockDrive;
rpm-build 0fba15
typedef struct { GObjectClass parent_class; } OstreeMockDriveClass;
rpm-build 0fba15
rpm-build 0fba15
static inline OstreeMockDrive *OSTREE_MOCK_DRIVE (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_mock_drive_get_type (), OstreeMockDrive); }
rpm-build 0fba15
static inline gboolean OSTREE_IS_MOCK_DRIVE (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_mock_drive_get_type ()); }
rpm-build 0fba15
G_GNUC_END_IGNORE_DEPRECATIONS
rpm-build 0fba15
rpm-build 0fba15
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeMockDrive, g_object_unref)
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
OstreeMockDrive *ostree_mock_drive_new (gboolean is_removable);
rpm-build 0fba15
rpm-build 0fba15
#define OSTREE_TYPE_MOCK_MOUNT (ostree_mock_mount_get_type ())
rpm-build 0fba15
rpm-build 0fba15
/* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44):
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
G_DECLARE_FINAL_TYPE (OstreeMockMount, ostree_mock_mount, OSTREE, MOCK_MOUNT, GObject) */
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
GType ostree_mock_mount_get_type (void);
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
rpm-build 0fba15
typedef struct _OstreeMockMount OstreeMockMount;
rpm-build 0fba15
typedef struct { GObjectClass parent_class; } OstreeMockMountClass;
rpm-build 0fba15
rpm-build 0fba15
static inline OstreeMockMount *OSTREE_MOCK_MOUNT (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_mock_mount_get_type (), OstreeMockMount); }
rpm-build 0fba15
static inline gboolean OSTREE_IS_MOCK_MOUNT (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_mock_mount_get_type ()); }
rpm-build 0fba15
G_GNUC_END_IGNORE_DEPRECATIONS
rpm-build 0fba15
rpm-build 0fba15
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeMockMount, g_object_unref)
rpm-build 0fba15
rpm-build 0fba15
G_GNUC_INTERNAL
rpm-build 0fba15
OstreeMockMount *ostree_mock_mount_new (const gchar *name,
rpm-build 0fba15
                                        GFile       *root);
rpm-build 0fba15
rpm-build 0fba15
G_END_DECLS