gnu.h

00001 /*
00002     libparted - a library for manipulating disk partitions
00003     Copyright (C) 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 PED_GNU_H_INCLUDED
00021 #define PED_GNU_H_INCLUDED
00022 
00023 #include <parted/parted.h>
00024 
00025 #include <hurd/store.h>
00026 
00027 #define GNU_SPECIFIC(dev)       ((GNUSpecific*) (dev)->arch_specific)
00028 
00029 typedef struct _GNUSpecific     GNUSpecific;
00030 
00031 struct _GNUSpecific {
00032         struct store*   store;
00033         int consume;
00034 };
00035 
00036 extern PedArchitecture ped_gnu_arch;
00037 
00038 /* Initialize a PedDevice using SOURCE.  The SOURCE will NOT be destroyed;
00039    the caller created it, it is the caller's responsilbility to free it
00040    after it calls ped_device_destory.  SOURCE is not registered in Parted's
00041    list of devices.  */
00042 PedDevice* ped_device_new_from_store (struct store *source);
00043 
00044 #endif /* PED_GNU_H_INCLUDED */
00045 

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