partedincludedir = $(includedir)/parted
-partedinclude_HEADERS = gnu.h \
- linux.h \
- constraint.h \
+partedinclude_HEADERS = constraint.h \
debug.h \
device.h \
disk.h \
+++ /dev/null
-/*
- libparted - a library for manipulating disk partitions
- Copyright (C) 2006, 2007 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef PED_BEOS_H_INCLUDED
-#define PED_BEOS_H_INCLUDED
-
-#include <parted/parted.h>
-#include <parted/device.h>
-
-#define BEOS_SPECIFIC(dev) ((BEOSSpecific*) (dev)->arch_specific)
-
-typedef struct _BEOSSpecific BEOSSpecific;
-
-struct _BEOSSpecific {
- int fd;
-};
-
-#endif /* PED_LINUX_H_INCLUDED */
-
+++ /dev/null
-/*
- libparted - a library for manipulating disk partitions
- Copyright (C) 2001, 2007 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef PED_GNU_H_INCLUDED
-#define PED_GNU_H_INCLUDED
-
-#include <parted/parted.h>
-
-#include <hurd/store.h>
-
-#define GNU_SPECIFIC(dev) ((GNUSpecific*) (dev)->arch_specific)
-
-typedef struct _GNUSpecific GNUSpecific;
-
-struct _GNUSpecific {
- struct store* store;
- int consume;
-};
-
-/* Initialize a PedDevice using SOURCE. The SOURCE will NOT be destroyed;
- the caller created it, it is the caller's responsilbility to free it
- after it calls ped_device_destory. SOURCE is not registered in Parted's
- list of devices. */
-PedDevice* ped_device_new_from_store (struct store *source);
-
-#endif /* PED_GNU_H_INCLUDED */
-
+++ /dev/null
-/*
- libparted - a library for manipulating disk partitions
- Copyright (C) 2001, 2007 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef PED_LINUX_H_INCLUDED
-#define PED_LINUX_H_INCLUDED
-
-#include <parted/parted.h>
-#include <parted/device.h>
-
-#if defined(__s390__) || defined(__s390x__)
-# include <parted/fdasd.h>
-#endif
-
-#define LINUX_SPECIFIC(dev) ((LinuxSpecific*) (dev)->arch_specific)
-
-typedef struct _LinuxSpecific LinuxSpecific;
-
-struct _LinuxSpecific {
- int fd;
- char* dmtype; /**< device map target type */
-#if defined(__s390__) || defined(__s390x__)
- unsigned int real_sector_size;
- /* IBM internal dasd structure (i guess ;), required. */
- struct fdasd_anchor *anchor;
-#endif
-};
-
-#endif /* PED_LINUX_H_INCLUDED */
-
#include <parted/parted.h>
#include <parted/debug.h>
-#include <parted/beos.h>
/* POSIX headers */
#include <sys/stat.h>
#include "../architecture.h"
+#define BEOS_SPECIFIC(dev) ((BEOSSpecific*) (dev)->arch_specific)
+
+typedef struct _BEOSSpecific BEOSSpecific;
+
+struct _BEOSSpecific {
+ int fd;
+};
+
static void
_scan_for_disks(const char* path)
{
#include <parted/parted.h>
#include <parted/debug.h>
-#include <parted/gnu.h>
#include <errno.h>
#include <hurd.h>
#include "../architecture.h"
+#define GNU_SPECIFIC(dev) ((GNUSpecific*) (dev)->arch_specific)
+
+typedef struct _GNUSpecific GNUSpecific;
+
+struct _GNUSpecific {
+ struct store* store;
+ int consume;
+};
+
+/* Initialize a PedDevice using SOURCE. The SOURCE will NOT be destroyed;
+ the caller created it, it is the caller's responsilbility to free it
+ after it calls ped_device_destory. SOURCE is not registered in Parted's
+ list of devices. */
+PedDevice* ped_device_new_from_store (struct store *source);
+
static int
_device_get_sector_size (PedDevice* dev)
{
#include <parted/parted.h>
#include <parted/debug.h>
-#include <parted/linux.h>
#include <ctype.h>
#include <errno.h>
#define RW_MODE (O_RDWR)
#endif
+#if defined(__s390__) || defined(__s390x__)
+# include <parted/fdasd.h>
+#endif
+
+#define LINUX_SPECIFIC(dev) ((LinuxSpecific*) (dev)->arch_specific)
+
+typedef struct _LinuxSpecific LinuxSpecific;
+
+struct _LinuxSpecific {
+ int fd;
+ char* dmtype; /**< device map target type */
+#if defined(__s390__) || defined(__s390x__)
+ unsigned int real_sector_size;
+ /* IBM internal dasd structure (i guess ;), required. */
+ struct fdasd_anchor *anchor;
+#endif
+};
+
struct hd_geometry {
unsigned char heads;
unsigned char sectors;