diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-02 14:23:52 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-03 05:57:06 +0100 |
commit | 8a95e6f820f066451e1325592c9c0f18fa205c17 (patch) | |
tree | ef684ed217a4af5ac6e20eaf7e578b83d6afb50c /cpukit/rtems/src/rtemsobjectidgetindex.c | |
parent | score: Define _Assert() for static analysis runs (diff) | |
download | rtems-8a95e6f820f066451e1325592c9c0f18fa205c17.tar.bz2 |
rtems: Rework object services API
Add a "Constraints" paragraph to the documentation.
Provide prototypes for programming language bindings. Use the macro
implementation to implement the corresponding functions.
Update #3993.
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectidgetindex.c')
-rw-r--r-- | cpukit/rtems/src/rtemsobjectidgetindex.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/cpukit/rtems/src/rtemsobjectidgetindex.c b/cpukit/rtems/src/rtemsobjectidgetindex.c index cdcbd2f609..48e2f5ad95 100644 --- a/cpukit/rtems/src/rtemsobjectidgetindex.c +++ b/cpukit/rtems/src/rtemsobjectidgetindex.c @@ -20,19 +20,16 @@ #include "config.h" #endif -#include <rtems/score/objectimpl.h> +#include <rtems/rtems/object.h> -/* - * This is implemented as a macro. This body is provided to support - * bindings from non-C based languages. - */ -int rtems_object_id_get_index( - Objects_Id id -); +static int _RTEMS_Object_id_get_index( rtems_id id ) +{ + return rtems_object_id_get_index( id ); +} + +#undef rtems_object_id_get_index -int rtems_object_id_get_index( - Objects_Id id -) +int rtems_object_id_get_index( rtems_id id ) { - return _Objects_Get_index( id ); + return _RTEMS_Object_id_get_index( id ); } |