Minor updates
[keystone-rtos/rm-lld.git] / src / rm_transport.c
index af6746c5a87af48f4afab2e3f4f24272563aa0f0..48f33bec2a8ac4bb27863928c44141d79a27fe97 100644 (file)
@@ -64,7 +64,7 @@
  *              was created, initialized, and added to the \r
  *              instance transport list.\r
  */\r
-static Rm_Transport *transportAdd(Rm_TransportCfg *transportCfg)\r
+static Rm_Transport *transportAdd(const Rm_TransportCfg *transportCfg)\r
 {\r
     Rm_Inst      *rmInst = (Rm_Inst *) transportCfg->rmHandle;\r
     Rm_Transport *transports = rmInst->transports;\r
@@ -364,7 +364,7 @@ Rm_PacketHandle rmTransportCreateNsResponsePkt(Rm_Inst *rmInst, Rm_AppTransportH
  *              is returned for the transport handle if any errors\r
  *              are encountered.\r
  */\r
-Rm_TransportHandle Rm_transportRegister (Rm_TransportCfg *transportCfg, int32_t *result)\r
+Rm_TransportHandle Rm_transportRegister (const Rm_TransportCfg *transportCfg, int32_t *result)\r
 {\r
     Rm_Inst      *rmInst = (Rm_Inst *) transportCfg->rmHandle;\r
     Rm_Transport *transport = NULL;\r
@@ -445,7 +445,7 @@ int32_t Rm_transportUnregister(Rm_TransportHandle transportHandle)
  * DESCRIPTION: The application provides RM packets received on the\r
  *              application transports to RM via this API.  Function\r
  *              can be called from polling or ISR contexts. */\r
-int32_t Rm_receivePacket(Rm_TransportHandle transportHandle, Rm_Packet *pkt)\r
+int32_t Rm_receivePacket(Rm_TransportHandle transportHandle, const Rm_Packet *pkt)\r
 {\r\r\r
     Rm_Transport   *transport = (Rm_Transport *)transportHandle;\r
     Rm_Inst        *rmInst = (Rm_Inst *)transport->rmHandle;\r