|
如MSG_ID_MMI_NW_PWROFF_DETACH_REQ和MSG_ID_MMI_NW_PWROFF_DETACH_RSP,是一对,MMI向L4C发MSG_ID_MMI_NW_PWROFF_DETACH_REQ,底层反应后向上层发MSG_ID_MMI_NW_PWROFF_DETACH_RSP,并call相应的function,问题是这两个消息ID如何对应的 呢?只看到如下code,不知是我理解不对还是没找到对应的代码.一般所有的消息只能从名字上区分xxxx_REQ对应xxxx_RSP?
SetProtocolEventHandler(RstSIM2DetachHandler, MSG_ID_MMI_NW_PWROFF_DETACH_RSP);
/* Deattach network */
Message.oslSrcId = MOD_MMI;
Message.oslDestId = MOD_L4C;
Message.oslMsgId = MSG_ID_MMI_NW_PWROFF_DETACH_REQ;
Message.oslDataPtr = (oslParaType*) NULL;
Message.oslPeerBuffPtr = NULL;
OslMsgSendExtQueue(&Message);
bStatus = MMI_TRUE;
return; |
|