source: rtems/c/src/exec/itron/macros/rtems/itron/mbox.inl @ 7afbca0

4.104.114.84.95
Last change on this file since 7afbca0 was 7afbca0, checked in by Joel Sherrill <joel.sherrill@…>, on 12/01/00 at 19:00:04

2000-12-01 Joel Sherrill <joel@…>

  • Added macro support to ITRON API. This is known to compile.
  • Makefile.am: Added macros directory.
  • configure.in: Removed error check for enabling macros.
  • macros/.cvsignore, macros/Makefile.am, macros/rtems/.cvsignore, macros/rtems/Makefile.am, macros/rtems/itron/.cvsignore, macros/rtems/itron/Makefile.am, macros/rtems/itron/eventflags.inl, macros/rtems/itron/fmempool.inl, macros/rtems/itron/intr.inl, macros/rtems/itron/mbox.inl, macros/rtems/itron/msgbuffer.inl, macros/rtems/itron/network.inl, macros/rtems/itron/port.inl, macros/rtems/itron/semaphore.inl, macros/rtems/itron/sysmgmt.inl, macros/rtems/itron/task.inl, macros/rtems/itron/time.inl, macros/rtems/itron/vmempool.inl: New files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.OARcorp.com/rtems/license.html.
8 *
9 *  $Id$
10 */
11
12#ifndef __ITRON_MAILBOX_inl_
13#define __ITRON_MAILBOX_inl_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*
20 *  _ITRON_Mailbox_Allocate
21 */
22
23#define _ITRON_Mailbox_Allocate( _mbxid ) \
24  (ITRON_Mailbox_Control *)_ITRON_Objects_Allocate_by_index( \
25    &_ITRON_Mailbox_Information, \
26    (_mbxid), \
27    sizeof(ITRON_Mailbox_Control) \
28  )
29
30/*
31 *  _ITRON_Mailbox_Clarify_allocation_id_error
32 */
33
34#define _ITRON_Mailbox_Clarify_allocation_id_error( _id ) \
35  _ITRON_Objects_Clarify_allocation_id_error( \
36      &_ITRON_Mailbox_Information, (_id) )
37
38/*
39 *  _ITRON_Mailbox_Clarify_get_id_error
40 */
41
42#define _ITRON_Mailbox_Clarify_get_id_error( _id ) \
43 _ITRON_Objects_Clarify_get_id_error( &_ITRON_Mailbox_Information, (_id) )
44
45/*
46 *  _ITRON_Mailbox_Free
47 */
48
49#define _ITRON_Mailbox_Free( _the_mailbox ) \
50  _ITRON_Objects_Free( &_ITRON_Mailbox_Information, &(_the_mailbox)->Object )
51
52/*PAGE
53 *
54 *  _ITRON_Mailbox_Get
55 */
56
57#define _ITRON_Mailbox_Get( _id, _location ) \
58  (ITRON_Mailbox_Control *) \
59    _ITRON_Objects_Get( &_ITRON_Mailbox_Information, (_id), (_location) )
60
61/*PAGE
62 *
63 *  _ITRON_Mailbox_Is_null
64 */
65
66#define _ITRON_Mailbox_Is_null( _the_mailbox ) \
67  ( (_the_mailbox) == NULL )
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif
74/* end of include file */
75
Note: See TracBrowser for help on using the repository browser.