summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/rtemsobjectidgetclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectidgetclass.c')
-rw-r--r--cpukit/rtems/src/rtemsobjectidgetclass.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/rtems/src/rtemsobjectidgetclass.c b/cpukit/rtems/src/rtemsobjectidgetclass.c
new file mode 100644
index 0000000000..fe85050c4a
--- /dev/null
+++ b/cpukit/rtems/src/rtemsobjectidgetclass.c
@@ -0,0 +1,28 @@
+/*
+ * RTEMS Object Helper -- Extract Class From Id
+ *
+ * COPYRIGHT (c) 1989-2008.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/system.h>
+#include <rtems/score/object.h>
+#include <rtems/rtems/types.h>
+
+#undef rtems_object_id_get_class
+int rtems_object_id_get_class(
+ rtems_id id
+)
+{
+ return _Objects_Get_class( id );
+}