Changeset ac252bdc in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 23, 2013, 8:04:19 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
93fb3cb0
Parents:
2445bda
git-author:
Sebastian Huber <sebastian.huber@…> (07/23/13 08:04:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/23/13 13:12:51)
Message:

sapi: Create extension implementation header

Move implementation specific parts of extension.h and extension.inl into
new header file extensionimpl.h. The extension.h contains now only the
application visible API.

Location:
cpukit/sapi
Files:
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/Makefile.am

    r2445bda rac252bdc  
    88include_rtems_HEADERS += include/rtems/config.h
    99include_rtems_HEADERS += include/rtems/extension.h
     10include_rtems_HEADERS += include/rtems/extensionimpl.h
    1011include_rtems_HEADERS += include/rtems/fatal.h
    1112include_rtems_HEADERS += include/rtems/init.h
     
    1920
    2021EXTRA_DIST = include/rtems/README
    21 
    22 include_rtems_HEADERS += inline/rtems/extension.inl
    2322
    2423## src
  • cpukit/sapi/include/rtems/extension.h

    r2445bda rac252bdc  
    1616#ifndef _RTEMS_EXTENSION_H
    1717#define _RTEMS_EXTENSION_H
    18 
    19 #ifndef SAPI_EXT_EXTERN
    20 #define SAPI_EXT_EXTERN extern
    21 #endif
    2218
    2319#ifdef __cplusplus
     
    3026#include <rtems/rtems/types.h>
    3127
    32 SAPI_EXT_EXTERN Objects_Information  _Extension_Information;
    33 
    3428typedef struct {
    3529  Objects_Control          Object;
    3630  User_extensions_Control  Extension;
    3731}   Extension_Control;
    38 
    39 /**
    40  *  @brief Initialize extension manager.
    41  *
    42  *  This routine initializes all extension manager related data structures.
    43  */
    44 void _Extension_Manager_initialization(void);
    4532
    4633typedef User_extensions_routine
     
    252239/** @} */
    253240
    254 #ifndef __RTEMS_APPLICATION__
    255 #include <rtems/extension.inl>
    256 #endif
    257 
    258241#ifdef __cplusplus
    259242}
  • cpukit/sapi/include/rtems/extensionimpl.h

    r2445bda rac252bdc  
    1616 */
    1717
    18 #ifndef __EXTENSION_MANAGER_inl
    19 #define __EXTENSION_MANAGER_inl
     18#ifndef _RTEMS_EXTENSIONIMPL_H
     19#define _RTEMS_EXTENSIONIMPL_H
     20
     21#include <rtems/extension.h>
     22
     23#ifdef __cplusplus
     24extern "C" {
     25#endif
     26
     27#ifndef SAPI_EXT_EXTERN
     28#define SAPI_EXT_EXTERN extern
     29#endif
     30
     31SAPI_EXT_EXTERN Objects_Information  _Extension_Information;
     32
     33/**
     34 *  @brief Initialize extension manager.
     35 *
     36 *  This routine initializes all extension manager related data structures.
     37 */
     38void _Extension_Manager_initialization(void);
    2039
    2140RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
     
    4766}
    4867
     68#ifdef __cplusplus
     69}
     70#endif
     71
    4972#endif
    5073/* end of include file */
  • cpukit/sapi/preinstall.am

    r2445bda rac252bdc  
    4545PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
    4646
     47$(PROJECT_INCLUDE)/rtems/extensionimpl.h: include/rtems/extensionimpl.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
     48        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extensionimpl.h
     49PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extensionimpl.h
     50
    4751$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    4852        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h
     
    8185PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/timespec.h
    8286
    83 $(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    84         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
    85 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
    86 
    8787$(PROJECT_LIB)/libsapi.a: libsapi.a $(PROJECT_LIB)/$(dirstamp)
    8888        $(INSTALL_DATA) $< $(PROJECT_LIB)/libsapi.a
  • cpukit/sapi/src/exinit.c

    r2445bda rac252bdc  
    3333#include <rtems/config.h>
    3434#include <rtems/debug.h>
    35 #include <rtems/extension.h>
     35#include <rtems/extensionimpl.h>
    3636#include <rtems/fatal.h>
    3737#include <rtems/init.h>
  • cpukit/sapi/src/extension.c

    r2445bda rac252bdc  
    2727#include <rtems/score/object.h>
    2828#include <rtems/score/thread.h>
    29 #include <rtems/extension.h>
     29#include <rtems/extensionimpl.h>
    3030
    3131void _Extension_Manager_initialization(void)
  • cpukit/sapi/src/extensioncreate.c

    r2445bda rac252bdc  
    2525#include <rtems/score/thread.h>
    2626#include <rtems/score/userextimpl.h>
    27 #include <rtems/extension.h>
     27#include <rtems/extensionimpl.h>
    2828
    2929rtems_status_code rtems_extension_create(
  • cpukit/sapi/src/extensiondata.c

    r2445bda rac252bdc  
    2323#define SAPI_EXT_EXTERN
    2424
    25 #include <rtems/system.h>
    26 #include <rtems/extension.h>
    27 
     25#include <rtems/extensionimpl.h>
  • cpukit/sapi/src/extensiondelete.c

    r2445bda rac252bdc  
    2020#endif
    2121
    22 #include <rtems/extension.h>
     22#include <rtems/extensionimpl.h>
    2323#include <rtems/score/object.h>
    2424#include <rtems/score/thread.h>
  • cpukit/sapi/src/extensionident.c

    r2445bda rac252bdc  
    2424#include <rtems/score/object.h>
    2525#include <rtems/score/thread.h>
    26 #include <rtems/extension.h>
     26#include <rtems/extensionimpl.h>
    2727
    2828rtems_status_code rtems_extension_ident(
Note: See TracChangeset for help on using the changeset viewer.