OSDN Git Service

maint: hoist libparted/fs/*/Makefile.am into parent Makefile.am
[android-x86/external-parted.git] / libparted / fs / amiga / a-interface.c
1 /*
2     interface.c -- parted support amiga file systems
3     Copyright (C) 1998-2000, 2007, 2009-2012 Free Software Foundation, Inc.
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
19
20 #include <config.h>
21
22 #include <parted/parted.h>
23 #include <parted/debug.h>
24 #include <parted/endian.h>
25
26 extern PedFileSystemType _affs0_type;
27 extern PedFileSystemType _affs1_type;
28 extern PedFileSystemType _affs2_type;
29 extern PedFileSystemType _affs3_type;
30 extern PedFileSystemType _affs4_type;
31 extern PedFileSystemType _affs5_type;
32 extern PedFileSystemType _affs6_type;
33 extern PedFileSystemType _affs7_type;
34 extern PedFileSystemType _amufs_type;
35 extern PedFileSystemType _amufs0_type;
36 extern PedFileSystemType _amufs1_type;
37 extern PedFileSystemType _amufs2_type;
38 extern PedFileSystemType _amufs3_type;
39 extern PedFileSystemType _amufs4_type;
40 extern PedFileSystemType _amufs5_type;
41 extern PedFileSystemType _asfs_type;
42 extern PedFileSystemType _apfs1_type;
43 extern PedFileSystemType _apfs2_type;
44
45 void ped_file_system_amiga_init ()
46 {
47         ped_file_system_type_register (&_affs0_type);
48         ped_file_system_type_register (&_affs1_type);
49         ped_file_system_type_register (&_affs2_type);
50         ped_file_system_type_register (&_affs3_type);
51         ped_file_system_type_register (&_affs4_type);
52         ped_file_system_type_register (&_affs5_type);
53         ped_file_system_type_register (&_affs6_type);
54         ped_file_system_type_register (&_affs7_type);
55         ped_file_system_type_register (&_amufs_type);
56         ped_file_system_type_register (&_amufs0_type);
57         ped_file_system_type_register (&_amufs1_type);
58         ped_file_system_type_register (&_amufs2_type);
59         ped_file_system_type_register (&_amufs3_type);
60         ped_file_system_type_register (&_amufs4_type);
61         ped_file_system_type_register (&_amufs5_type);
62         ped_file_system_type_register (&_asfs_type);
63         ped_file_system_type_register (&_apfs1_type);
64         ped_file_system_type_register (&_apfs2_type);
65 }
66
67 void ped_file_system_amiga_done ()
68 {
69         ped_file_system_type_unregister (&_affs0_type);
70         ped_file_system_type_unregister (&_affs1_type);
71         ped_file_system_type_unregister (&_affs2_type);
72         ped_file_system_type_unregister (&_affs3_type);
73         ped_file_system_type_unregister (&_affs4_type);
74         ped_file_system_type_unregister (&_affs5_type);
75         ped_file_system_type_unregister (&_affs6_type);
76         ped_file_system_type_unregister (&_affs7_type);
77         ped_file_system_type_unregister (&_amufs_type);
78         ped_file_system_type_unregister (&_amufs0_type);
79         ped_file_system_type_unregister (&_amufs1_type);
80         ped_file_system_type_unregister (&_amufs2_type);
81         ped_file_system_type_unregister (&_amufs3_type);
82         ped_file_system_type_unregister (&_amufs4_type);
83         ped_file_system_type_unregister (&_amufs5_type);
84         ped_file_system_type_unregister (&_asfs_type);
85         ped_file_system_type_unregister (&_apfs1_type);
86         ped_file_system_type_unregister (&_apfs2_type);
87 }