Changeset 00d17034 in rtems for cpukit/libblock


Ignore:
Timestamp:
03/12/10 16:35:13 (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
0dca067
Parents:
8c53580
Message:

2010-03-12 Joel Sherrill <joel.sherrill@…>

  • libblock/src/ide_part_table.c: Functionality of rtems_ide_part_table_get() and rtems_ide_part_table_free() was needed internally but those routines are deprecated from the public API. So move their contents to private static routines. Using the private routines in this file avoids deprecation warnings and leaves functional, although deprecated, versions for potential use by applications.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ide_part_table.c

    r8c53580 r00d17034  
    427427
    428428/*
    429  * rtems_ide_part_table_free - frees disk descriptor structure
     429 * partition_table_free - frees disk descriptor structure
    430430 *
    431431 * PARAMETERS:
     
    435435 *      N/A
    436436 */
    437 void
    438 rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc)
     437static void
     438partition_table_free(rtems_disk_desc_t *disk_desc)
    439439{
    440440    int part_num;
    441441
    442     for (part_num = 0; part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; part_num++)
     442    for (part_num = 0;
     443         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
     444         part_num++)
    443445    {
    444446        partition_free(disk_desc->partitions[part_num]);
     
    450452
    451453/*
    452  * rtems_ide_part_table_get - reads partition table structure from the device
     454 * partition_table_get - reads partition table structure from the device
    453455 *                            and creates disk description structure
    454456 *
     
    461463 *      RTEMS_INTERNAL_ERROR otherwise
    462464 */
    463 rtems_status_code
    464 rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)
     465static rtems_status_code
     466partition_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)
    465467{
    466468    struct stat         dev_stat;
     
    481483
    482484    return rc;
     485}
     486
     487
     488/*
     489 * rtems_ide_part_table_free - frees disk descriptor structure
     490 *
     491 * PARAMETERS:
     492 *      disk_desc - disc descriptor structure to free
     493 *
     494 * RETURNS:
     495 *      N/A
     496 */
     497void
     498rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc)
     499{
     500    partition_table_free( disk_desc );
     501}
     502
     503
     504/*
     505 * rtems_ide_part_table_get - reads partition table structure from the device
     506 *                            and creates disk description structure
     507 *
     508 * PARAMETERS:
     509 *      dev_name - path to physical device in /dev filesystem
     510 *      disk_desc       - returned disc description structure
     511 *
     512 * RETURNS:
     513 *      RTEMS_SUCCESSFUL if success,
     514 *      RTEMS_INTERNAL_ERROR otherwise
     515 */
     516rtems_status_code
     517rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)
     518{
     519    return partition_table_get( dev_name, disk_desc );
    483520}
    484521
     
    517554
    518555    /* get partition table */
    519     rc = rtems_ide_part_table_get(dev_name, disk_desc);
     556    rc = partition_table_get(dev_name, disk_desc);
    520557    if (rc != RTEMS_SUCCESSFUL)
    521558    {
     
    552589    }
    553590
    554     rtems_ide_part_table_free(disk_desc);
     591    partition_table_free(disk_desc);
    555592
    556593    return RTEMS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.