index 298bb3545097cdff0c9cb853e64863e587be66b7..b85cf28000d548d19a7ef402c3af4036b2e75eb9 100644 (file)
#include <ti/grcm/RcmTypes.h>
#include <ti/grcm/RcmServer.h>
-#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <ti/ipc/rpmsg/MessageQCopy.h>
-#include <ti/ipc/rpmsg/NameMap.h>
+#include <ti/ipc/rpmsg/RPMessage.h>
#include "rpmsg_omx.h"
#include "ServiceMgr.h"
if (!serviceTasks[i].taken) {
st = &serviceTasks[i];
st->fxn = func;
- strcpy(st->name, taskParams->instance->name);
+ strncpy(st->name, taskParams->instance->name, MAX_NAMELEN-1);
+ st->name[MAX_NAMELEN-1] = '\0';
/* Deal with the Task_Params to avoid IInstance mismatch */
params = &st->params;
return (found);
}
-Bool ServiceMgr_register(String name, RcmServer_Params *rcmServerParams)
+Bool ServiceMgr_register(String name, RcmServer_Params *rcmServerParams)
{
UInt i;
Bool found = FALSE;
/* Set special rpmsg_omx header so Linux side can strip it off: */
hdr->type = OMX_RAW_MSG;
hdr->len = len;
- hdr->flags = 0;
/* Send it off (and no response expected): */
- MessageQCopy_send(dstProc, remote, local, data, HDRSIZE+len);
+ RPMessage_send(dstProc, remote, local, data, HDRSIZE+len);
}
Bool ServiceMgr_registerDisconnectFxn(Service_Handle srvc, Ptr data,