2017-09-21 22:26:06 +03:00
/*
2017-04-19 02:07:51 +03:00
* Copyright © 2017 Endless Mobile , Inc .
*
2018-01-30 22:26:26 +03:00
* SPDX - License - Identifier : LGPL - 2.0 +
*
2017-04-19 02:07:51 +03:00
* This library is free software ; you can redistribute it and / or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2 of the License , or ( at your option ) any later version .
*
* This library is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* Lesser General Public License for more details .
*
* You should have received a copy of the GNU Lesser General Public
2021-12-07 04:20:55 +03:00
* License along with this library . If not , see < https : //www.gnu.org/licenses/>.
2017-04-19 02:07:51 +03:00
*
* Authors :
* - Philip Withnall < withnall @ endlessm . com >
*/
# pragma once
# include <gio/gio.h>
# include <glib-object.h>
2023-05-01 21:24:29 +03:00
# include <glib.h>
2017-04-19 02:07:51 +03:00
# include <libglnx.h>
# include "ostree-types.h"
G_BEGIN_DECLS
# define OSTREE_TYPE_MOCK_VOLUME_MONITOR (ostree_mock_volume_monitor_get_type ())
G_GNUC_INTERNAL
2023-05-01 21:24:29 +03:00
G_DECLARE_FINAL_TYPE ( OstreeMockVolumeMonitor , ostree_mock_volume_monitor , OSTREE ,
2024-07-10 04:10:18 +03:00
MOCK_VOLUME_MONITOR , GVolumeMonitor )
2017-04-19 02:07:51 +03:00
G_GNUC_INTERNAL
2023-05-01 21:24:29 +03:00
GVolumeMonitor * ostree_mock_volume_monitor_new ( GList * mounts , GList * volumes ) ;
2017-04-19 02:07:51 +03:00
# define OSTREE_TYPE_MOCK_VOLUME (ostree_mock_volume_get_type ())
G_GNUC_INTERNAL
2024-07-10 04:10:18 +03:00
G_DECLARE_FINAL_TYPE ( OstreeMockVolume , ostree_mock_volume , OSTREE , MOCK_VOLUME , GObject )
2017-04-19 02:07:51 +03:00
G_GNUC_INTERNAL
2023-05-01 21:24:29 +03:00
OstreeMockVolume * ostree_mock_volume_new ( const gchar * name , GDrive * drive , GMount * mount ) ;
2017-04-19 02:07:51 +03:00
# define OSTREE_TYPE_MOCK_DRIVE (ostree_mock_drive_get_type ())
G_GNUC_INTERNAL
2024-07-10 04:10:18 +03:00
G_DECLARE_FINAL_TYPE ( OstreeMockDrive , ostree_mock_drive , OSTREE , MOCK_DRIVE , GObject )
2017-04-19 02:07:51 +03:00
G_GNUC_INTERNAL
OstreeMockDrive * ostree_mock_drive_new ( gboolean is_removable ) ;
# define OSTREE_TYPE_MOCK_MOUNT (ostree_mock_mount_get_type ())
G_GNUC_INTERNAL
2024-07-10 04:10:18 +03:00
G_DECLARE_FINAL_TYPE ( OstreeMockMount , ostree_mock_mount , OSTREE , MOCK_MOUNT , GObject )
2017-04-19 02:07:51 +03:00
G_GNUC_INTERNAL
2023-05-01 21:24:29 +03:00
OstreeMockMount * ostree_mock_mount_new ( const gchar * name , GFile * root ) ;
2017-04-19 02:07:51 +03:00
G_END_DECLS