[parted-devel] Deprecate ped[register|unregister]_disk_type

Otavio Salvador otavio at debian.org
Sat Dec 9 20:09:24 CET 2006


"Debarshi Ray" <debarshi.ray at gmail.com> writes:

> Here is a patch to deprecate ped_[register|unregister]_disk_type in
> favour of ped_disk_type_[register|unregister]. I did this since almost
> all the functions in libparted have ped_<filename> as a prefix, which
> was not the case here.
>
> The older functions are still there and they throw an exception of
> type INFORMATION. We can keep them this way for some time and then
> finally remove them in a 2.x release.

I think it's right but I would suggest that we make a macro to make
easier to warn user. I don't think that an exception is right but we
can display a warning while compiling.

Other's comments?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list