[parted-devel] [PATCH 6/8] maint: unmark PedDeviceType as deprecated

Jim Meyering jim at meyering.net
Sat Oct 1 07:40:43 UTC 2011


Petr Uzel wrote:
> PedDeviceType was marked as deprecated before parted started using
> git. Since it proved to be useful to differentiate between different
> device types and nobody seems interested in removing it from the API,
> let's clear the deprecated flag.

Reasonable.  Applied.

> ---
>  include/parted/device.h |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/include/parted/device.h b/include/parted/device.h
> index 0634465..a04d9fc 100644
> --- a/include/parted/device.h
> +++ b/include/parted/device.h
> @@ -29,7 +29,6 @@
>  /** We can address 2^63 sectors */
>  typedef long long PedSector;
>
> -/** \deprecated Removal from API planned */
>  typedef enum {
>          PED_DEVICE_UNKNOWN      = 0,
>          PED_DEVICE_SCSI         = 1,
> @@ -74,8 +73,7 @@ struct _PedDevice {
>                                               (manufacturer, model) */
>          char*           path;           /**< device /dev entry */
>
> -        PedDeviceType   type;           /**< SCSI, IDE, etc.
> -                                             \deprecated \sa PedDeviceType */
> +        PedDeviceType   type;           /**< SCSI, IDE, etc. \sa PedDeviceType */
>          long long       sector_size;            /**< logical sector size */
>          long long       phys_sector_size;       /**< physical sector size */
>          PedSector       length;                 /**< device length (LBA) */



More information about the parted-devel mailing list