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
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel