source: rtems/cpukit/itron/include/rtems/itron/msgbuffer.h @ 6df1f64

4.104.114.84.95
Last change on this file since 6df1f64 was 6df1f64, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 11:07:14 AM

New header guards.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file rtems/itron/msgbuffer.h
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-1999.
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#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <rtems/itron/object.h>
24#include <rtems/score/coremsg.h>
25
26/*
27 *  The following defines the control block used to manage each
28 *  message buffer.
29 */
30
31typedef struct {
32    ITRON_Objects_Control               Object;
33    boolean                             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
42ITRON_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
52void _ITRON_Message_buffer_Manager_initialization(
53  uint32_t   maximum_message_buffers
54);
55
56/*
57 *  _ITRON_Message_buffer_Translate_core_message_buffer_return_code
58 *
59 *  DESCRIPTION:
60 *
61 *  This routine translates a core message buffer object status
62 *  into the appropriate ITRON status code.
63 */
64
65ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
66  CORE_message_queue_Status status
67);
68
69#include <rtems/itron/msgbuffer.inl>
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
76/* end of include file */
Note: See TracBrowser for help on using the repository browser.