summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/include/rtems/itron/msgbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/itron/include/rtems/itron/msgbuffer.h')
-rw-r--r--cpukit/itron/include/rtems/itron/msgbuffer.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/cpukit/itron/include/rtems/itron/msgbuffer.h b/cpukit/itron/include/rtems/itron/msgbuffer.h
new file mode 100644
index 0000000000..9762c63e22
--- /dev/null
+++ b/cpukit/itron/include/rtems/itron/msgbuffer.h
@@ -0,0 +1,76 @@
+/**
+ * @file rtems/itron/msgbuffer.h
+ */
+
+/*
+ * COPYRIGHT (c) 1989-1999.
+ * 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$
+ */
+
+#ifndef _RTEMS_ITRON_MSGBUFFER_H
+#define _RTEMS_ITRON_MSGBUFFER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <rtems/itron/object.h>
+#include <rtems/score/coremsg.h>
+
+/*
+ * The following defines the control block used to manage each
+ * message buffer.
+ */
+
+typedef struct {
+ ITRON_Objects_Control Object;
+ boolean is_priority_blocking;
+ CORE_message_queue_Control message_queue;
+} ITRON_Message_buffer_Control;
+
+/*
+ * The following defines the information control block used to manage
+ * this class of objects.
+ */
+
+ITRON_EXTERN Objects_Information _ITRON_Message_buffer_Information;
+
+/*
+ * _ITRON_Message_buffer_Manager_initialization
+ *
+ * DESCRIPTION:
+ *
+ * This routine performs the initialization necessary for this manager.
+ */
+
+void _ITRON_Message_buffer_Manager_initialization(
+ uint32_t maximum_message_buffers
+);
+
+/*
+ * _ITRON_Message_buffer_Translate_core_message_buffer_return_code
+ *
+ * DESCRIPTION:
+ *
+ * This routine translates a core message buffer object status
+ * into the appropriate ITRON status code.
+ */
+
+ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
+ CORE_message_queue_Status status
+);
+
+#include <rtems/itron/msgbuffer.inl>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */