2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 ///////////////////////////////////////////////////////////////////////////////
18 /// \ingroup tag_NS_MessageCenter
19 /// \brief Declares the internal methods of message center
23 ///////////////////////////////////////////////////////////////////////////////
25 #ifndef FRAMEWORK_UNIFIED_CLIENT_NS_MESSAGECENTER_INCLUDE_NS_MC_INTERNAL_H_
26 #define FRAMEWORK_UNIFIED_CLIENT_NS_MESSAGECENTER_INCLUDE_NS_MC_INTERNAL_H_
34 ////////////////////////////////////////////////////////////////////////////////////////////
36 /// Get the message data, this may be from a queue or shared memory.
37 /// Deletes the data based on the value of BOOL retain, if it is stored in shared memory.
40 /// PVOID - pointer to the data received from the McReceive Call
42 /// PVOID - pointer to the data to be received
43 /// \param [in] retain
44 /// BOOL - TRUE to retain the data in shared memory
45 /// FALSE to release the data
47 /// \return EFrameworkunifiedStatus
48 /// EFrameworkunifiedStatus - status indicating success or failure
50 ////////////////////////////////////////////////////////////////////////////////////////////
51 EFrameworkunifiedStatus GetData(PVOID data, PVOID to, BOOL retain);
53 ////////////////////////////////////////////////////////////////////////////////////////////
54 /// McLogTransmitLoggingMsgProcessed
56 /// \param [in] p_sysHdr
57 /// PVOID - Header of the received message. Passed as PVOID since Frameworkunified layer doesn't have
58 /// knowledge about the header.
59 /// \param [in] bMsgProcessed
60 /// BOOL - TRUE - If any action was taken on the received message else FALSE
64 ////////////////////////////////////////////////////////////////////////////////////////////
65 VOID McLogTransmitLoggingMsgProcessed(PVOID p_sysHdr, BOOL bMsgProcessed);
67 ////////////////////////////////////////////////////////////////////////////////////////////
68 /// Get the session id.
71 /// PVOID - pointer to the data was received from the McReceive Call
74 /// sessionId - session id
75 ////////////////////////////////////////////////////////////////////////////////////////////
76 UI_32 mcGetMsgSsessionId(PVOID data);
78 ////////////////////////////////////////////////////////////////////////////////////////////
79 /// Gets the is type of sync from message header.
82 /// void* - pointer to the data was received from the McReceive Call
86 /// if message type is sync, return TRUE. or not return FALSE.
87 ////////////////////////////////////////////////////////////////////////////////////////////
88 BOOL mcGetIsTypeOfSync(PVOID data);
93 #endif // FRAMEWORK_UNIFIED_CLIENT_NS_MESSAGECENTER_INCLUDE_NS_MC_INTERNAL_H_