Debian Codegraph @

modules/lvm2/udiskslinuxlogicalvolume.h

raw
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 *
3 * Copyright (C) 2007-2010 David Zeuthen <[email protected]>
4 * Copyright (C) 2013 Marius Vollmer <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22 #ifndef __UDISKS_LINUX_LOGICAL_VOLUME_H__
23 #define __UDISKS_LINUX_LOGICAL_VOLUME_H__
24
25 #include <blockdev/lvm.h>
26
27 #include <src/udisksdaemontypes.h>
28 #include "udiskslvm2types.h"
29
30 G_BEGIN_DECLS
31
32 #define UDISKS_TYPE_LINUX_LOGICAL_VOLUME (udisks_linux_logical_volume_get_type ())
33 #define UDISKS_LINUX_LOGICAL_VOLUME(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UDISKS_TYPE_LINUX_LOGICAL_VOLUME, UDisksLinuxLogicalVolume))
34 #define UDISKS_IS_LINUX_LOGICAL_VOLUME(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UDISKS_TYPE_LINUX_LOGICAL_VOLUME))
35
36 GType udisks_linux_logical_volume_get_type (void) G_GNUC_CONST;
37 UDisksLogicalVolume *udisks_linux_logical_volume_new (void);
38 void udisks_linux_logical_volume_update (UDisksLinuxLogicalVolume *logical_volume,
39 UDisksLinuxVolumeGroupObject *group_object,
40 BDLVMLVdata *lv_info,
41 BDLVMLVdata *meta_lv_info,
42 BDLVMLVdata **all_lv_infos,
43 gboolean *needs_polling_ret);
44 void udisks_linux_logical_volume_update_etctabs (UDisksLinuxLogicalVolume *logical_volume,
45 UDisksLinuxVolumeGroupObject *group_object);
46
47 gboolean udisks_linux_logical_volume_teardown_block (UDisksLogicalVolume *volume,
48 UDisksDaemon *daemon,
49 GDBusMethodInvocation *invocation,
50 GVariant *options,
51 GError **error);
52
53 G_END_DECLS
54
55 #endif /* __UDISKS_LINUX_LOGICAL_VOLUME_H__ */