summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/object.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 21:01:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 21:01:30 +0000
commitff08b8087887bc1ae8d9f22f3a21c62e46477312 (patch)
treedb90a83cc219fdfa6fd708484c0966acc0f2b434 /cpukit/score/include/rtems/score/object.h
parent2003-08-14 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ff08b8087887bc1ae8d9f22f3a21c62e46477312.tar.bz2
2003-08-14 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, include/rtems/score/object.h, include/rtems/score/objectmp.h, src/objectmp.c, src/objectnametoid.c: Added ID to name lookup service and changed name of id/name translation status code. This propagated to multiple functions. The user API service added was rtems_object_id_to_name() * src/objectidtoname.c: New file.
Diffstat (limited to 'cpukit/score/include/rtems/score/object.h')
-rw-r--r--cpukit/score/include/rtems/score/object.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h
index 7ccba96e83..8c98e9f7f9 100644
--- a/cpukit/score/include/rtems/score/object.h
+++ b/cpukit/score/include/rtems/score/object.h
@@ -437,6 +437,7 @@ boolean _Objects_Compare_name_raw(
void *name_2,
unsigned32 length
);
+
/*
* _Objects_Name_to_id
*
@@ -454,15 +455,16 @@ boolean _Objects_Compare_name_raw(
*/
typedef enum {
- OBJECTS_SUCCESSFUL,
+ OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL,
OBJECTS_INVALID_NAME,
+ OBJECTS_INVALID_ID,
OBJECTS_INVALID_NODE
-} Objects_Name_to_id_errors;
+} Objects_Name_or_id_lookup_errors;
-#define OBJECTS_NAME_ERRORS_FIRST OBJECTS_SUCCESSFUL
+#define OBJECTS_NAME_ERRORS_FIRST OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL
#define OBJECTS_NAME_ERRORS_LAST OBJECTS_INVALID_NODE
-Objects_Name_to_id_errors _Objects_Name_to_id(
+Objects_Name_or_id_lookup_errors _Objects_Name_to_id(
Objects_Information *information,
Objects_Name name,
unsigned32 node,
@@ -470,6 +472,25 @@ Objects_Name_to_id_errors _Objects_Name_to_id(
);
/*
+ * _Objects_Id_to_Name
+ *
+ * DESCRIPTION:
+ *
+ * This function implements the common portion of the object Id
+ * to name directives. This function returns the name
+ * associated with object id.
+ *
+ * NOTE:
+ *
+ * This function currently does not support string names.
+ */
+
+Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
+ Objects_Id id,
+ Objects_Name *name
+);
+
+/*
* _Objects_Get
*
* DESCRIPTION: