Changeset 3235ad9 in rtems for cpukit/sapi/src


Ignore:
Timestamp:
Aug 23, 1995, 7:30:23 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5250ff39
Parents:
80e2c29e
Message:

Support for variable length names added to Object Handler. This supports
both fixed length "raw" names and strings from the API's point of view.

Both inline and macro implementations were tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/extension.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/object.h>
    1819#include <rtems/thread.h>
     
    3637{
    3738  _Objects_Initialize_information(
    38      &_Extension_Information,
    39      OBJECTS_RTEMS_EXTENSIONS,
    40      FALSE,
    41      maximum_extensions,
    42      sizeof( Extension_Control )
     39    &_Extension_Information,
     40    OBJECTS_RTEMS_EXTENSIONS,
     41    FALSE,
     42    maximum_extensions,
     43    sizeof( Extension_Control ),
     44    FALSE,
     45    RTEMS_MAXIMUM_NAME_LENGTH
    4346  );
    4447}
     
    6265
    6366rtems_status_code rtems_extension_create(
    64   Objects_Name                   name,
     67  rtems_name                     name,
    6568  rtems_extensions_table *extension_table,
    6669  Objects_Id                    *id
     
    6972  Extension_Control *the_extension;
    7073
    71   if ( !_Objects_Is_name_valid( name ) )
     74  if ( !rtems_is_name_valid( name ) )
    7275    return ( RTEMS_INVALID_NAME );
    7376
     
    8386  _User_extensions_Add_set( &the_extension->Extension, extension_table );
    8487
    85   _Objects_Open( &_Extension_Information, &the_extension->Object, name );
     88  _Objects_Open( &_Extension_Information, &the_extension->Object, &name );
    8689
    8790  *id = the_extension->Object.id;
     
    108111
    109112rtems_status_code rtems_extension_ident(
    110   Objects_Name  name,
     113  rtems_name    name,
    111114  Objects_Id   *id
    112115)
     
    114117  return _Objects_Name_to_id(
    115118    &_Extension_Information,
    116     name,
     119    &name,
    117120    RTEMS_SEARCH_LOCAL_NODE,
    118121    id
Note: See TracChangeset for help on using the changeset viewer.