diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-11-02 14:33:05 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2007-11-03 16:38:01 -0200 |
commit | 5b1ae8fe9eec59340b479e8e3ac74a3268123e33 (patch) | |
tree | 37b403a6119de8d9794c9668a25c6985427ec963 /include | |
parent | dc8582efb6077fe129ccfa9f7ed1827adaed5abd (diff) | |
download | parted-5b1ae8fe9eec59340b479e8e3ac74a3268123e33.tar.gz |
Move PedArchitecture and ped_set_architecture to private
Code that works with libparted isn't suppose to need to change the
architecture where it's running and then doesn't make sense to export
it.
Two new files has been create (libparted/architecture.[hc]) that has
the PedArchitecture structure and the ped_set_architecture
implementation. All changes that were need to get it suported on all
currently available architectures has been done too.
Diffstat (limited to 'include')
-rw-r--r-- | include/parted/beos.h | 2 | ||||
-rw-r--r-- | include/parted/gnu.h | 2 | ||||
-rw-r--r-- | include/parted/linux.h | 2 | ||||
-rw-r--r-- | include/parted/parted.h | 14 |
4 files changed, 0 insertions, 20 deletions
diff --git a/include/parted/beos.h b/include/parted/beos.h index cb329aa..b4d692c 100644 --- a/include/parted/beos.h +++ b/include/parted/beos.h @@ -30,7 +30,5 @@ struct _BEOSSpecific { int fd; }; -extern PedArchitecture ped_beos_arch; - #endif /* PED_LINUX_H_INCLUDED */ diff --git a/include/parted/gnu.h b/include/parted/gnu.h index e809fb7..a47b026 100644 --- a/include/parted/gnu.h +++ b/include/parted/gnu.h @@ -32,8 +32,6 @@ struct _GNUSpecific { int consume; }; -extern PedArchitecture ped_gnu_arch; - /* 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 diff --git a/include/parted/linux.h b/include/parted/linux.h index 52d28be..9eb7490 100644 --- a/include/parted/linux.h +++ b/include/parted/linux.h @@ -39,7 +39,5 @@ struct _LinuxSpecific { #endif }; -extern PedArchitecture ped_linux_arch; - #endif /* PED_LINUX_H_INCLUDED */ diff --git a/include/parted/parted.h b/include/parted/parted.h index 1302d8f..31ed6ec 100644 --- a/include/parted/parted.h +++ b/include/parted/parted.h @@ -23,8 +23,6 @@ extern "C" { #endif -typedef struct _PedArchitecture PedArchitecture; - #include <parted/constraint.h> #include <parted/device.h> #include <parted/disk.h> @@ -37,18 +35,6 @@ typedef struct _PedArchitecture PedArchitecture; #include <stdlib.h> #include <string.h> -struct _PedArchitecture { - PedDiskArchOps* disk_ops; - PedDeviceArchOps* dev_ops; -}; - -extern const PedArchitecture* ped_architecture; - -/* the architecture can't be changed if there are any PedDevice's. - * i.e. you should only be doing this if it's the FIRST thing you do... - */ -extern int ped_set_architecture (const PedArchitecture* arch); - extern const char* ped_get_version (); extern void* ped_malloc (size_t size); |