blob: a7f31edcd7171d5846baee344f23f4102ab7a991 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
/*
interface.c -- parted support amiga file systems
Copyright (C) 1998-2000, 2007, 2009-2014, 2019-2022 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <parted/parted.h>
#include <parted/debug.h>
#include <parted/endian.h>
extern PedFileSystemType _affs0_type;
extern PedFileSystemType _affs1_type;
extern PedFileSystemType _affs2_type;
extern PedFileSystemType _affs3_type;
extern PedFileSystemType _affs4_type;
extern PedFileSystemType _affs5_type;
extern PedFileSystemType _affs6_type;
extern PedFileSystemType _affs7_type;
extern PedFileSystemType _amufs_type;
extern PedFileSystemType _amufs0_type;
extern PedFileSystemType _amufs1_type;
extern PedFileSystemType _amufs2_type;
extern PedFileSystemType _amufs3_type;
extern PedFileSystemType _amufs4_type;
extern PedFileSystemType _amufs5_type;
extern PedFileSystemType _asfs_type;
extern PedFileSystemType _apfs1_type;
extern PedFileSystemType _apfs2_type;
void ped_file_system_amiga_init ()
{
ped_file_system_type_register (&_affs0_type);
ped_file_system_type_register (&_affs1_type);
ped_file_system_type_register (&_affs2_type);
ped_file_system_type_register (&_affs3_type);
ped_file_system_type_register (&_affs4_type);
ped_file_system_type_register (&_affs5_type);
ped_file_system_type_register (&_affs6_type);
ped_file_system_type_register (&_affs7_type);
ped_file_system_type_register (&_amufs_type);
ped_file_system_type_register (&_amufs0_type);
ped_file_system_type_register (&_amufs1_type);
ped_file_system_type_register (&_amufs2_type);
ped_file_system_type_register (&_amufs3_type);
ped_file_system_type_register (&_amufs4_type);
ped_file_system_type_register (&_amufs5_type);
ped_file_system_type_register (&_asfs_type);
ped_file_system_type_register (&_apfs1_type);
ped_file_system_type_register (&_apfs2_type);
}
void ped_file_system_amiga_done ()
{
ped_file_system_type_unregister (&_affs0_type);
ped_file_system_type_unregister (&_affs1_type);
ped_file_system_type_unregister (&_affs2_type);
ped_file_system_type_unregister (&_affs3_type);
ped_file_system_type_unregister (&_affs4_type);
ped_file_system_type_unregister (&_affs5_type);
ped_file_system_type_unregister (&_affs6_type);
ped_file_system_type_unregister (&_affs7_type);
ped_file_system_type_unregister (&_amufs_type);
ped_file_system_type_unregister (&_amufs0_type);
ped_file_system_type_unregister (&_amufs1_type);
ped_file_system_type_unregister (&_amufs2_type);
ped_file_system_type_unregister (&_amufs3_type);
ped_file_system_type_unregister (&_amufs4_type);
ped_file_system_type_unregister (&_amufs5_type);
ped_file_system_type_unregister (&_asfs_type);
ped_file_system_type_unregister (&_apfs1_type);
ped_file_system_type_unregister (&_apfs2_type);
}
|