anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 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 | |
| 13 | namespace cmn{ |
| 14 | namespace utils{ |
| 15 | class MsgBuffer; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | class MmeIpcInterface { |
| 20 | |
| 21 | public: |
| 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 | |
| 37 | private: |
| 38 | cmn::ipc::IpcChannel* sender_mp; |
| 39 | cmn::ipc::IpcChannel* reader_mp; |
| 40 | }; |
| 41 | |
| 42 | #endif /* INCLUDE_MME_APP_INTERFACES_MMEIPCINTERFACE_H_ */ |