Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Diff: xbus/xbusparser.h
- Revision:
- 51:cce9990f102a
- Parent:
- 46:f652d199d27e
- Child:
- 61:b9d3e7e5ba0c
--- a/xbus/xbusparser.h Fri May 22 15:40:27 2015 +0200 +++ b/xbus/xbusparser.h Fri May 22 15:41:46 2015 +0200 @@ -37,8 +37,9 @@ * \returns Pointer to buffer to use for message reception, or NULL if * a buffer cannot be allocated. * - * \note It is the resposibility of the callback to deallocate the buffer - * once it is done with processing the message. + * \note It is the resposibility of the user to deallocate the message + * data buffers pointed to by XbusMessage structures passed to the + * handleMessage() callback function. */ void* (*allocateBuffer)(size_t bufSize); @@ -50,6 +51,10 @@ /*! * \brief Handle a received message. + * + * \note If the passed XbusMessage structure has a non-null data pointer + * then it is the responsibility of the user to free this once handling + * of the message is complete. */ void (*handleMessage)(struct XbusMessage const* message); };
