[352c9b2] | 1 | /* |
---|
| 2 | * The license and distribution terms for this file may be |
---|
| 3 | * found in the file LICENSE in this distribution or at |
---|
| 4 | * http://www.OARcorp.com/rtems/license.html. |
---|
| 5 | * |
---|
| 6 | * $Id$ |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #ifndef __RTEMS_ITRON_MESSAGEBUFFER_h_ |
---|
| 10 | #define __RTEMS_ITRON_MESSAGEBUFFER_h_ |
---|
| 11 | |
---|
| 12 | #ifdef __cplusplus |
---|
| 13 | extern "C" { |
---|
| 14 | #endif |
---|
| 15 | |
---|
| 16 | #include <rtems/itron/object.h> |
---|
| 17 | #include <rtems/score/coremsg.h> |
---|
| 18 | |
---|
| 19 | /* |
---|
| 20 | * The following defines the control block used to manage each |
---|
| 21 | * message buffer. |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | typedef struct { |
---|
| 25 | ITRON_Objects_Control Object; |
---|
| 26 | boolean is_priority_blocking; |
---|
| 27 | CORE_message_queue_Control message_queue; |
---|
| 28 | } ITRON_Message_buffer_Control; |
---|
| 29 | |
---|
| 30 | /* |
---|
| 31 | * The following defines the information control block used to manage |
---|
| 32 | * this class of objects. |
---|
| 33 | */ |
---|
| 34 | |
---|
| 35 | ITRON_EXTERN Objects_Information _ITRON_Message_buffer_Information; |
---|
| 36 | |
---|
| 37 | /* |
---|
| 38 | * _ITRON_Message_buffer_Manager_initialization |
---|
| 39 | * |
---|
| 40 | * DESCRIPTION: |
---|
| 41 | * |
---|
| 42 | * This routine performs the initialization necessary for this manager. |
---|
| 43 | */ |
---|
| 44 | |
---|
| 45 | void _ITRON_Message_buffer_Manager_initialization( |
---|
| 46 | unsigned32 maximum_message_buffers |
---|
| 47 | ); |
---|
| 48 | |
---|
| 49 | /* |
---|
[d280ce18] | 50 | * _ITRON_Message_buffer_Translate_core_message_buffer_return_code |
---|
| 51 | * |
---|
| 52 | * DESCRIPTION: |
---|
| 53 | * |
---|
| 54 | * This routine translates a core message buffer object status |
---|
| 55 | * into the appropriate ITRON status code. |
---|
| 56 | */ |
---|
| 57 | |
---|
| 58 | ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code( |
---|
| 59 | CORE_message_queue_Status status |
---|
| 60 | ); |
---|
[352c9b2] | 61 | |
---|
| 62 | #include <rtems/itron/msgbuffer.inl> |
---|
| 63 | |
---|
| 64 | #ifdef __cplusplus |
---|
| 65 | } |
---|
| 66 | #endif |
---|
| 67 | |
---|
| 68 | #endif |
---|
| 69 | /* end of include file */ |
---|