parted.h

00001 /*
00002     libparted - a library for manipulating disk partitions
00003     Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
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 /* the architecture can't be changed if there are any PedDevice's.
00049  * i.e. you should only be doing this if it's the FIRST thing you do...
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 /* PARTED_H_INCLUDED */

Generated on Fri May 4 05:15:31 2007 for libparted by  doxygen 1.5.2