Adding stub functions for RM OSAL multi-thread critical section enter and exit
[keystone-rtos/netapi.git] / ti / runtime / netapi / utils / netapi_util_rm.c
index 79281df330f44e79a24398d576b185b6f49bb34c..2a3edc0af0a10be4917884245fa8fe2eb5a12927 100755 (executable)
@@ -95,10 +95,10 @@ Rm_ServiceHandle   *rmClientServiceHandle = NULL;
 sock_h              rmClientSocket;
 
 /* Client instance name (must match with RM Global Resource List (GRL) and policies */
-char                rmClientName[RM_NAME_MAX_CHARS] = "RM_Client0";
+char                rmClientName[RM_NAME_MAX_CHARS] = "RM_Client_NETAPI";
 
 /* Client socket name */
-char                rmClientSockName[] = "/tmp/var/run/rm/rm_client";
+char                rmClientSockName[] = "/tmp/var/run/rm/rm_client_netapi";
 
 /* Transport map stores the RM transport handle to IPC MessageQ queue mapping */
 Transport_MapEntry  rmTransportMap[MAX_MAPPING_ENTRIES];
@@ -173,6 +173,16 @@ void Osal_rmLog (char *fmt, ... )
     va_end(ap);
 }
 
+void *Osal_rmMtCsEnter(void *mtSemObj)
+{
+    return NULL;
+}
+
+
+void Osal_rmMtCsExit(void *mtSemObj, void *CsHandle)
+{
+
+}
 Rm_Packet *transportAlloc(Rm_AppTransportHandle appTransport, uint32_t pktSize, Rm_PacketHandle *pktHandle)
 {
     Rm_Packet *rm_pkt = NULL;
@@ -328,7 +338,6 @@ int initRm (void)
     rmClientHandle = Rm_init(&rmInitCfg, &result);
     RM_ERROR_CHECK(RM_OK, result, rmClientName, "Initialization failed");
 
-    printf("\n\nInitialized %s\n\n", rmClientName);
 
     /* Open Client service handle */
     rmClientServiceHandle = Rm_serviceOpenHandle(rmClientHandle, &result);
@@ -337,9 +346,9 @@ int initRm (void)
     return(connection_setup());
 }
 
-int closeRm(void)
+int32_t closeRm(void)
 {
-    int32_t            result;
+    int32_t            result = 0;
 
     if(rmClientHandle)
     {
@@ -352,6 +361,7 @@ int closeRm(void)
         result = Rm_delete(rmClientHandle, 1);  
         RM_ERROR_CHECK(RM_OK, result, rmClientName, "Instance delete failed");
     }
+    return (result);
 }