2 libparted - a library for manipulating disk partitions
3 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
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.
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.
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
20 #ifndef PARTED_H_INCLUDED
21 #define PARTED_H_INCLUDED
27 typedef struct _PedArchitecture PedArchitecture;
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>
41 struct _PedArchitecture {
42 PedDiskArchOps* disk_ops;
43 PedDeviceArchOps* dev_ops;
46 extern const PedArchitecture* ped_architecture;
48 /* the architecture can't be changed if there are any PedDevice's.
49 * i.e. you should only be doing this if it's the FIRST thing you do...
51 extern int ped_set_architecture (const PedArchitecture* arch);
53 extern const char* ped_get_version ();
55 extern void* ped_malloc (size_t size);
56 extern void* ped_calloc (size_t size);
57 extern int ped_realloc (void** ptr, size_t size);
58 extern void ped_free (void* ptr);
64 #endif /* PARTED_H_INCLUDED */