blob: 9ff016d4f27ac237881f80c58d81aa1370282d12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/**
* @file rtems/itron/msgbuffer.h
*/
/*
* 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$
*/
#ifndef _RTEMS_ITRON_MSGBUFFER_H
#define _RTEMS_ITRON_MSGBUFFER_H
#include <rtems/itron/object.h>
#include <rtems/score/coremsg.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following defines the control block used to manage each
* message buffer.
*/
typedef struct {
ITRON_Objects_Control Object;
bool 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(void);
/*
* _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 */
|