aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/messages.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
commitd6d799ed48f8193bee286187132221f831726a07 (patch)
tree928f9db3dbb76cfdef92405635b8d1b7885e5b5e /src/include/messages.h
parentff4dd3f8f0f95652f754ab869b136d31d671ac51 (diff)
downloadChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.gz
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.bz2
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@39 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/messages.h')
-rw-r--r--src/include/messages.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/messages.h b/src/include/messages.h
index a6ce409f3..a5e88c267 100644
--- a/src/include/messages.h
+++ b/src/include/messages.h
@@ -31,25 +31,31 @@
* Evaluates to TRUE if the thread has pending messages.
*/
#define chMsgIsPendingI(tp) \
- ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue)
+ ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue)
/**
* Returns the first message in the queue.
*/
#define chMsgGetI(tp) \
- ((tp)->p_msgqueue.p_next->p_msg)
+ ((tp)->p_msgqueue.p_next->p_msg)
-t_msg chMsgSend(Thread *tp, t_msg msg);
-t_msg chMsgWait(void);
-t_msg chMsgGet(void);
-void chMsgRelease(t_msg msg);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ t_msg chMsgSend(Thread *tp, t_msg msg);
+ t_msg chMsgWait(void);
+ t_msg chMsgGet(void);
+ void chMsgRelease(t_msg msg);
#ifdef CH_USE_MESSAGES_EVENT
-t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp);
+ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp);
#endif
#ifdef CH_USE_MESSAGES_TIMEOUT
-t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time);
+ t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time);
+#endif
+#ifdef __cplusplus
+}
#endif
#endif /* CH_USE_MESSAGES */