mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-19 23:17:40 +00:00

This allows us to rip out a lot of legacy code and make interacting with the ESP possible from more than one plugin.
32 lines
906 B
C
32 lines
906 B
C
/*
|
|
* Copyright (C) 2018-2020 Richard Hughes <richard@hughsie.com>
|
|
* Copyright (C) 2019 Mario Limonciello <mario.limonciello@dell.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "fu-device-locker.h"
|
|
|
|
#define FU_TYPE_VOLUME (fu_volume_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (FuVolume, fu_volume, FU, VOLUME, GObject)
|
|
|
|
#define FU_VOLUME_KIND_ESP "c12a7328-f81f-11d2-ba4b-00a0c93ec93b"
|
|
|
|
const gchar *fu_volume_get_id (FuVolume *self);
|
|
gboolean fu_volume_check_free_space (FuVolume *self,
|
|
guint64 required,
|
|
GError **error);
|
|
gboolean fu_volume_is_mounted (FuVolume *self);
|
|
gchar *fu_volume_get_mount_point (FuVolume *self);
|
|
gboolean fu_volume_mount (FuVolume *self,
|
|
GError **error);
|
|
gboolean fu_volume_unmount (FuVolume *self,
|
|
GError **error);
|
|
FuDeviceLocker *fu_volume_locker (FuVolume *self,
|
|
GError **error);
|