| 1 |
/* sysprof-mount-private.h |
| 2 |
* |
| 3 |
* Copyright 2023 Christian Hergert <[email protected]> |
| 4 |
* |
| 5 |
* This program is free software: you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
* |
| 18 |
* SPDX-License-Identifier: GPL-3.0-or-later |
| 19 |
*/ |
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include "sysprof-mount.h" |
| 24 |
#include "sysprof-strings-private.h" |
| 25 |
|
| 26 |
G_BEGIN_DECLS |
| 27 |
|
| 28 |
struct _SysprofMount |
| 29 |
{ |
| 30 |
GObject parent_instance; |
| 31 |
int mount_id; |
| 32 |
int parent_mount_id; |
| 33 |
int device_major; |
| 34 |
int device_minor; |
| 35 |
GRefString *root; |
| 36 |
GRefString *mount_point; |
| 37 |
GRefString *mount_source; |
| 38 |
GRefString *filesystem_type; |
| 39 |
GRefString *superblock_options; |
| 40 |
guint is_overlay : 1; |
| 41 |
guint layer : 15; |
| 42 |
}; |
| 43 |
|
| 44 |
SysprofMount *_sysprof_mount_new_for_mountinfo (SysprofStrings *strings, |
| 45 |
const char *mountinfo); |
| 46 |
SysprofMount *_sysprof_mount_new_for_overlay (SysprofStrings *strings, |
| 47 |
const char *mount_point, |
| 48 |
const char *host_path, |
| 49 |
int layer); |
| 50 |
const char *_sysprof_mount_get_relative_path (SysprofMount *self, |
| 51 |
const char *path); |
| 52 |
|
| 53 |
G_END_DECLS |