diff options
author | Angela Stegmaier <angelabaker@ti.com> | 2017-03-27 13:42:28 -0500 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2017-03-31 10:05:04 -0500 |
commit | 05693805a1d730f55136a67009ccb1a1883d37ee (patch) | |
tree | 515d8620757687000ed1d378d0261c1cdbe8eed7 | |
parent | 0d2897f57f46c7da0909830db10e5d33dcdb209a (diff) | |
download | ipc-05693805a1d730f55136a67009ccb1a1883d37ee.tar.gz |
Linux/Android: MessageQ - Fix Implicit Declaration Warning
This patch fixes the following compiler warning:
lad.c:685:17: warning: implicit declaration of function 'MessageQ_announce'
This patch adds the MessageQ_announce prototype to MessageQ.h so
that MessageQ_announce is no longer implicitly declared.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
-rw-r--r-- | packages/ti/ipc/MessageQ.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/ti/ipc/MessageQ.h b/packages/ti/ipc/MessageQ.h index 70cbd75..662eaeb 100644 --- a/packages/ti/ipc/MessageQ.h +++ b/packages/ti/ipc/MessageQ.h @@ -732,6 +732,27 @@ Void MessageQ_Params2_init(MessageQ_Params2 *params); MessageQ_Handle MessageQ_create(String name, const MessageQ_Params *params); /*! + * @brief Announce a previously created MessageQ to NameServer + * (Linux/Android only) + * + * The name supplied here does not have to be in persistent memory. The + * maximum length of the string supplied here, including the '\\0' terminator, + * is '32' by default. + * + * There are no verifications to ensure that the name supplied in + * MessageQ_announce() is unique across all processors. Caution must be + * exercised to ensure that each processor uses a unique name. + * + * @param[in] name Name of the queue + * @param[in] handlePtr Pointer to handle returned from MessageQ_create. + * + * @return MessageQ status: + * - #MessageQ_E_FAIL: announce failed + * - #MessageQ_S_SUCCESS: announce successful + */ +Int MessageQ_announce(String name, MessageQ_Handle * handlePtr); + +/*! * @brief Create a MessageQ instance using the type MessageQ_Params2 * * The name supplied here does not have to be in persistent memory. The |