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