OSDN Git Service

Add stdint.h stdlib.h & string.h to include/parted/parted.h and remove them from...
[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 <stdint.h>
38 #include <stdlib.h>
39 #include <string.h>
40
41 struct _PedArchitecture {
42         PedDiskArchOps*         disk_ops;
43         PedDeviceArchOps*       dev_ops;
44 };
45
46 extern const PedArchitecture*   ped_architecture;
47
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...
50  */
51 extern int ped_set_architecture (const PedArchitecture* arch);
52
53 extern const char* ped_get_version ();
54
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);
59
60 #ifdef __cplusplus
61 }
62 #endif
63
64 #endif /* PARTED_H_INCLUDED */