diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-08 10:28:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-12 13:25:40 +0100 |
commit | 257668dc5d4e0ba036bc4d5aef2925432d5d5af6 (patch) | |
tree | 717197f76c44410c036559f920293c94b57851d9 /cpukit/include/rtems/rtems | |
parent | rtems: Move internal structures to eventdata.h (diff) | |
download | rtems-257668dc5d4e0ba036bc4d5aef2925432d5d5af6.tar.bz2 |
rtems: Move internal structures to messagedata.h
Update #3598.
Diffstat (limited to 'cpukit/include/rtems/rtems')
-rw-r--r-- | cpukit/include/rtems/rtems/message.h | 45 | ||||
-rw-r--r-- | cpukit/include/rtems/rtems/messagedata.h | 54 | ||||
-rw-r--r-- | cpukit/include/rtems/rtems/messageimpl.h | 9 |
3 files changed, 65 insertions, 43 deletions
diff --git a/cpukit/include/rtems/rtems/message.h b/cpukit/include/rtems/rtems/message.h index 8ae9e156a1..768b0badd5 100644 --- a/cpukit/include/rtems/rtems/message.h +++ b/cpukit/include/rtems/rtems/message.h @@ -1,25 +1,9 @@ /** - * @file rtems/rtems/message.h + * @file * - * @defgroup ClassicMessageQueue Message Queues + * @ingroup ClassicMessageQueue * - * @ingroup ClassicRTEMS - * @brief Message Queue Manager - * - * This include file contains all the constants and structures associated - * with the Message Queue Manager. This manager provides a mechanism for - * communication and synchronization between tasks using messages. - * - * Directives provided are: - * - * - create a queue - * - get ID of a queue - * - delete a queue - * - put a message at the rear of a queue - * - put a message at the front of a queue - * - broadcast N messages to a queue - * - receive message from a queue - * - flush all messages on a queue + * @brief Classic Message Queue Manager API */ /* COPYRIGHT (c) 1989-2013. @@ -33,33 +17,16 @@ #ifndef _RTEMS_RTEMS_MESSAGE_H #define _RTEMS_RTEMS_MESSAGE_H -#include <rtems/rtems/types.h> -#include <rtems/rtems/status.h> -#include <rtems/rtems/options.h> #include <rtems/rtems/attr.h> -#include <rtems/score/object.h> -#include <rtems/score/coremsg.h> +#include <rtems/rtems/options.h> +#include <rtems/rtems/status.h> +#include <rtems/rtems/types.h> #ifdef __cplusplus extern "C" { #endif /** - * @ingroup ClassicMessageQueueImpl - * - * The following records define the control block used to manage - * each message queue. - */ -typedef struct { - /** This field is the inherited object characteristics. */ - Objects_Control Object; - /** This field is the instance of the SuperCore Message Queue. */ - CORE_message_queue_Control message_queue; - /** This field is the attribute set as defined by the API. */ - rtems_attribute attribute_set; -} Message_queue_Control; - -/** * @defgroup ClassicMessageQueue Message Queues * * @ingroup ClassicRTEMS diff --git a/cpukit/include/rtems/rtems/messagedata.h b/cpukit/include/rtems/rtems/messagedata.h new file mode 100644 index 0000000000..be09d8ed86 --- /dev/null +++ b/cpukit/include/rtems/rtems/messagedata.h @@ -0,0 +1,54 @@ +/** + * @file + * + * @ingroup ClassicMessageQueue + * + * @brief Classic Message Queue Manager API + */ + +/* COPYRIGHT (c) 1989-2013. + * 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.org/license/LICENSE. + */ + +#ifndef _RTEMS_RTEMS_MESSAGEDATA_H +#define _RTEMS_RTEMS_MESSAGEDATA_H + +#include <rtems/rtems/message.h> +#include <rtems/score/object.h> +#include <rtems/score/coremsg.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup ClassicMessageQueueImpl + * + * @{ + */ + +/** + * The following records define the control block used to manage + * each message queue. + */ +typedef struct { + /** This field is the inherited object characteristics. */ + Objects_Control Object; + /** This field is the instance of the SuperCore Message Queue. */ + CORE_message_queue_Control message_queue; + /** This field is the attribute set as defined by the API. */ + rtems_attribute attribute_set; +} Message_queue_Control; + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ diff --git a/cpukit/include/rtems/rtems/messageimpl.h b/cpukit/include/rtems/rtems/messageimpl.h index df7cea6829..098e310804 100644 --- a/cpukit/include/rtems/rtems/messageimpl.h +++ b/cpukit/include/rtems/rtems/messageimpl.h @@ -1,8 +1,9 @@ /** - * @file rtems/rtems/message.inl + * @file * - * This include file contains the static inline implementation of all - * inlined routines in the Message Manager. + * @ingroup ClassicMessageQueueImpl + * + * @brief Classic Message Queue Manager Implementation */ /* COPYRIGHT (c) 1989-2008. @@ -16,7 +17,7 @@ #ifndef _RTEMS_RTEMS_MESSAGEIMPL_H #define _RTEMS_RTEMS_MESSAGEIMPL_H -#include <rtems/rtems/message.h> +#include <rtems/rtems/messagedata.h> #include <rtems/score/objectimpl.h> #include <rtems/score/coremsgimpl.h> |