OSDN Git Service

Fix ChangeLog
[android-x86/external-parted.git] / include / parted / parted.h
1 /*
2     libparted - a library for manipulating disk partitions
3     Copyright (C) 1999, 2000, 2001 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 2 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, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20 #ifndef PARTED_H_INCLUDED
21 #define PARTED_H_INCLUDED
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef struct _PedArchitecture PedArchitecture;
28
29 #include <parted/constraint.h>
30 #include <parted/device.h>
31 #include <parted/disk.h>
32 #include <parted/exception.h>
33 #include <parted/filesys.h>
34 #include <parted/natmath.h>
35 #include <parted/unit.h>
36
37 #include <stdlib.h>
38
39 struct _PedArchitecture {
40         PedDiskArchOps*         disk_ops;
41         PedDeviceArchOps*       dev_ops;
42 };
43
44 extern const PedArchitecture*   ped_architecture;
45
46 /* the architecture can't be changed if there are any PedDevice's.
47  * i.e. you should only be doing this if it's the FIRST thing you do...
48  */
49 extern int ped_set_architecture (const PedArchitecture* arch);
50
51 extern const char* ped_get_version ();
52
53 extern void* ped_malloc (size_t size);
54 extern void* ped_calloc (size_t size);
55 extern int ped_realloc (void** ptr, size_t size);
56 extern void ped_free (void* ptr);
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /* PARTED_H_INCLUDED */