00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PARTED_H_INCLUDED
00021 #define PARTED_H_INCLUDED
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027 typedef struct _PedArchitecture PedArchitecture;
00028
00029 #include <parted/constraint.h>
00030 #include <parted/device.h>
00031 #include <parted/disk.h>
00032 #include <parted/exception.h>
00033 #include <parted/filesys.h>
00034 #include <parted/natmath.h>
00035 #include <parted/unit.h>
00036
00037 #include <stdint.h>
00038 #include <stdlib.h>
00039 #include <string.h>
00040
00041 struct _PedArchitecture {
00042 PedDiskArchOps* disk_ops;
00043 PedDeviceArchOps* dev_ops;
00044 };
00045
00046 extern const PedArchitecture* ped_architecture;
00047
00048
00049
00050
00051 extern int ped_set_architecture (const PedArchitecture* arch);
00052
00053 extern const char* ped_get_version ();
00054
00055 extern void* ped_malloc (size_t size);
00056 extern void* ped_calloc (size_t size);
00057 extern int ped_realloc (void** ptr, size_t size);
00058 extern void ped_free (void* ptr);
00059
00060 #ifdef __cplusplus
00061 }
00062 #endif
00063
00064 #endif