blob: 58d85c6eadebe24623186918537f666ec943f25a [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * mmeIpcInterface.h
3 *
4 * Created on: Aug 29, 2019
5 * Author: Anjana_Sreekumar
6 */
7
8#ifndef INCLUDE_MME_APP_INTERFACES_MMEIPCINTERFACE_H_
9#define INCLUDE_MME_APP_INTERFACES_MMEIPCINTERFACE_H_
10
11#include <ipcChannel.h>
12
13namespace cmn{
14namespace utils{
15 class MsgBuffer;
16}
17}
18
19class MmeIpcInterface {
20
21public:
22 MmeIpcInterface();
23 virtual ~MmeIpcInterface();
24
25 bool setup();
26 void teardown();
27
28 cmn::ipc::IpcChannel* sender();
29 cmn::ipc::IpcChannel* reader();
30
31 void handleIpcMsg(cmn::utils::MsgBuffer* buf);
32
33 bool dispatchIpcMsg(char* buf, uint32_t len, cmn::ipc::IpcAddress& destAddr);
34
35 bool dispatchIpcMsg(cmn::utils::MsgBuffer* msgBuf_p, cmn::ipc::IpcAddress& destAddr);
36
37private:
38 cmn::ipc::IpcChannel* sender_mp;
39 cmn::ipc::IpcChannel* reader_mp;
40};
41
42#endif /* INCLUDE_MME_APP_INTERFACES_MMEIPCINTERFACE_H_ */