[parted-devel] Architecture specific components
Debarshi 'Rishi' Ray
debarshi.ray at gmail.com
Fri Nov 2 09:24:29 UTC 2007
The function ped_set_architecture has been declared as:
/* 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);
...in include/parted/parted.h, while it has been defined and only used
in libparted/libparted.c.
Is it a good idea to expose it to application programs using
libparted? Or should we restrict it within the library as is done for
the ped_disk_*_init, ped_file_system_*_init, etc. functions?
Similarly for ped_architecture, declared as:
extern const PedArchitecture* ped_architecture;
Can't we just declare it as extern within the *.c files which are
going to use it?
Happy hacking,
Debarshi
--
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu
More information about the parted-devel
mailing list