ClRcT clMsgMessageReceivedServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClUint32T sendType; ClNameT pDestination; ClMsgMessageIovecT_4_0_0 pMessage; ClInt64T sendTime; ClHandleT senderHandle; ClInt64T timeout; memset(&(sendType), 0, sizeof(ClUint32T)); memset(&(pDestination), 0, sizeof(ClNameT)); memset(&(pMessage), 0, sizeof(ClMsgMessageIovecT_4_0_0)); memset(&(sendTime), 0, sizeof(ClInt64T)); memset(&(senderHandle), 0, sizeof(ClHandleT)); memset(&(timeout), 0, sizeof(ClInt64T)); rc = clXdrUnmarshallClUint32T( inMsgHdl,&(sendType)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClNameT( inMsgHdl,&(pDestination)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallClMsgMessageIovecT_4_0_0( inMsgHdl,&(pMessage)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallClInt64T( inMsgHdl,&(sendTime)); if (CL_OK != rc) { goto LL3; } rc = clXdrUnmarshallClHandleT( inMsgHdl,&(senderHandle)); if (CL_OK != rc) { goto LL4; } rc = clXdrUnmarshallClInt64T( inMsgHdl,&(timeout)); if (CL_OK != rc) { goto LL5; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgCltSrvidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgMessageReceived_4_0_0(sendType, &(pDestination), &(pMessage), sendTime, senderHandle, timeout); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClUint32T(&(sendType), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClNameT(&(pDestination), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallClMsgMessageIovecT_4_0_0(&(pMessage), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallClInt64T(&(sendTime), 0, 1); if (CL_OK != rc) { goto L4; } rc = clXdrMarshallClHandleT(&(senderHandle), 0, 1); if (CL_OK != rc) { goto L5; } rc = clXdrMarshallClInt64T(&(timeout), 0, 1); if (CL_OK != rc) { goto L6; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L6: return rc; LL5: clXdrMarshallClInt64T(&(timeout), 0, 1); LL4: clXdrMarshallClHandleT(&(senderHandle), 0, 1); LL3: clXdrMarshallClInt64T(&(sendTime), 0, 1); LL2: clXdrMarshallClMsgMessageIovecT_4_0_0(&(pMessage), 0, 1); LL1: clXdrMarshallClNameT(&(pDestination), 0, 1); LL0: clXdrMarshallClUint32T(&(sendType), 0, 1); return rc; L0: clXdrMarshallClUint32T(&(sendType), 0, 1); L1: clXdrMarshallClNameT(&(pDestination), 0, 1); L2: clXdrMarshallClMsgMessageIovecT_4_0_0(&(pMessage), 0, 1); L3: clXdrMarshallClInt64T(&(sendTime), 0, 1); L4: clXdrMarshallClHandleT(&(senderHandle), 0, 1); L5: clXdrMarshallClInt64T(&(timeout), 0, 1); return rc; }
ClRcT clLogMasterStreamCloseNotifyServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClStringT pFileName; ClStringT pFileLocation; SaNameT pStreamName; ClLogStreamScopeT pStreamScope; SaNameT pStreamScopeNode; memset(&(pFileName), 0, sizeof(ClStringT)); memset(&(pFileLocation), 0, sizeof(ClStringT)); memset(&(pStreamName), 0, sizeof(SaNameT)); memset(&(pStreamScope), 0, sizeof(ClLogStreamScopeT)); memset(&(pStreamScopeNode), 0, sizeof(SaNameT)); rc = clXdrUnmarshallClStringT( inMsgHdl,&(pFileName)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClStringT( inMsgHdl,&(pFileLocation)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamName)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallClLogStreamScopeT_4_0_0( inMsgHdl,&(pStreamScope)); if (CL_OK != rc) { goto LL3; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamScopeNode)); if (CL_OK != rc) { goto LL4; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogMasterStreamCloseNotify_4_0_0(&(pFileName), &(pFileLocation), &(pStreamName), pStreamScope, &(pStreamScopeNode)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClStringT(&(pFileName), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClStringT(&(pFileLocation), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaNameT(&(pStreamName), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); if (CL_OK != rc) { goto L4; } rc = clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); if (CL_OK != rc) { goto L5; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L5: return rc; LL4: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); LL3: clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); LL2: clXdrMarshallSaNameT(&(pStreamName), 0, 1); LL1: clXdrMarshallClStringT(&(pFileLocation), 0, 1); LL0: clXdrMarshallClStringT(&(pFileName), 0, 1); return rc; L0: clXdrMarshallClStringT(&(pFileName), 0, 1); L1: clXdrMarshallClStringT(&(pFileLocation), 0, 1); L2: clXdrMarshallSaNameT(&(pStreamName), 0, 1); L3: clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); L4: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); return rc; }
ClRcT clMsgQueueStatusGetServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClNameT pQueueName; SaMsgQueueStatusT_4_0_0 pQueueStatus; memset(&(pQueueName), 0, sizeof(ClNameT)); memset(&(pQueueStatus), 0, sizeof(SaMsgQueueStatusT_4_0_0)); rc = clXdrUnmarshallClNameT( inMsgHdl,&(pQueueName)); if (CL_OK != rc) { goto LL0; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgCltSrvidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgQueueStatusGet_4_0_0(&(pQueueName), &(pQueueStatus)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClNameT(&(pQueueName), 0, 1); if (CL_OK != rc) { goto L1; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallSaMsgQueueStatusT_4_0_0(&(pQueueStatus), outMsgHdl, 1); if (CL_OK != rc) { goto L2; } L2: return rc; LL0: clXdrMarshallClNameT(&(pQueueName), 0, 1); return rc; L0: clXdrMarshallClNameT(&(pQueueName), 0, 1); L1: clXdrMarshallSaMsgQueueStatusT_4_0_0(&(pQueueStatus), 0, 1); return rc; }
ClRcT clMsgQueueMoveMessagesServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClNameT pQName; ClUint32T openFlags; ClUint16T qDelete; memset(&(pQName), 0, sizeof(ClNameT)); memset(&(openFlags), 0, sizeof(ClUint32T)); memset(&(qDelete), 0, sizeof(ClUint16T)); rc = clXdrUnmarshallClNameT( inMsgHdl,&(pQName)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(openFlags)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallClUint16T( inMsgHdl,&(qDelete)); if (CL_OK != rc) { goto LL2; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgCltSrvidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgQueueMoveMessages_4_0_0(&(pQName), openFlags, qDelete); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClNameT(&(pQName), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClUint32T(&(openFlags), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallClUint16T(&(qDelete), 0, 1); if (CL_OK != rc) { goto L3; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L3: return rc; LL2: clXdrMarshallClUint16T(&(qDelete), 0, 1); LL1: clXdrMarshallClUint32T(&(openFlags), 0, 1); LL0: clXdrMarshallClNameT(&(pQName), 0, 1); return rc; L0: clXdrMarshallClNameT(&(pQName), 0, 1); L1: clXdrMarshallClUint32T(&(openFlags), 0, 1); L2: clXdrMarshallClUint16T(&(qDelete), 0, 1); return rc; }
ClRcT clMsgClientsTrackCallbackServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClHandleT clientHandle; ClNameT pGroupName; SaMsgQueueGroupNotificationBufferT_4_0_0 pNotification; memset(&(clientHandle), 0, sizeof(ClHandleT)); memset(&(pGroupName), 0, sizeof(ClNameT)); memset(&(pNotification), 0, sizeof(SaMsgQueueGroupNotificationBufferT_4_0_0)); rc = clXdrUnmarshallClHandleT( inMsgHdl,&(clientHandle)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClNameT( inMsgHdl,&(pGroupName)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaMsgQueueGroupNotificationBufferT_4_0_0( inMsgHdl,&(pNotification)); if (CL_OK != rc) { goto LL2; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgCltidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgClientsTrackCallback_4_0_0(clientHandle, &(pGroupName), &(pNotification)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClHandleT(&(clientHandle), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClNameT(&(pGroupName), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaMsgQueueGroupNotificationBufferT_4_0_0(&(pNotification), 0, 1); if (CL_OK != rc) { goto L3; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L3: return rc; LL2: clXdrMarshallSaMsgQueueGroupNotificationBufferT_4_0_0(&(pNotification), 0, 1); LL1: clXdrMarshallClNameT(&(pGroupName), 0, 1); LL0: clXdrMarshallClHandleT(&(clientHandle), 0, 1); return rc; L0: clXdrMarshallClHandleT(&(clientHandle), 0, 1); L1: clXdrMarshallClNameT(&(pGroupName), 0, 1); L2: clXdrMarshallSaMsgQueueGroupNotificationBufferT_4_0_0(&(pNotification), 0, 1); return rc; }
ClRcT clLogClientFilterSetNotifyServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; SaNameT streamName; ClUint32T streamScope; SaNameT streamScopeNode; ClLogFilterT_4_0_0 filter; memset(&(streamName), 0, sizeof(SaNameT)); memset(&(streamScope), 0, sizeof(ClUint32T)); memset(&(streamScopeNode), 0, sizeof(SaNameT)); memset(&(filter), 0, sizeof(ClLogFilterT_4_0_0)); rc = clXdrUnmarshallSaNameT( inMsgHdl,&(streamName)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(streamScope)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(streamScopeNode)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallClLogFilterT_4_0_0( inMsgHdl,&(filter)); if (CL_OK != rc) { goto LL3; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(AppidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogClientFilterSetNotify_4_0_0(streamName, streamScope, streamScopeNode, filter); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallSaNameT(&(streamName), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClUint32T(&(streamScope), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaNameT(&(streamScopeNode), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallClLogFilterT_4_0_0(&(filter), 0, 1); if (CL_OK != rc) { goto L4; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L4: return rc; LL3: clXdrMarshallClLogFilterT_4_0_0(&(filter), 0, 1); LL2: clXdrMarshallSaNameT(&(streamScopeNode), 0, 1); LL1: clXdrMarshallClUint32T(&(streamScope), 0, 1); LL0: clXdrMarshallSaNameT(&(streamName), 0, 1); return rc; L0: clXdrMarshallSaNameT(&(streamName), 0, 1); L1: clXdrMarshallClUint32T(&(streamScope), 0, 1); L2: clXdrMarshallSaNameT(&(streamScopeNode), 0, 1); L3: clXdrMarshallClLogFilterT_4_0_0(&(filter), 0, 1); return rc; }
ClRcT clLogExternalSendServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClUint16T recsize; ClUint8T* pRecord; SaNameT pStreamName; SaNameT pStreamScopeNode; memset(&(recsize), 0, sizeof(ClUint16T)); memset(&(pRecord), 0, sizeof(ClUint8T*)); memset(&(pStreamName), 0, sizeof(SaNameT)); memset(&(pStreamScopeNode), 0, sizeof(SaNameT)); rc = clXdrUnmarshallClUint16T( inMsgHdl,&(recsize)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamName)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamScopeNode)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallPtrClUint8T( inMsgHdl,(void**)&(pRecord), recsize); if (CL_OK != rc) { goto LL3; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogExternalSend_4_0_0(recsize, pRecord, &(pStreamName), &(pStreamScopeNode)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClUint16T(&(recsize), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallSaNameT(&(pStreamName), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallPtrClUint8T(pRecord, recsize, 0, 1); if (CL_OK != rc) { goto L4; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L4: return rc; LL3: clXdrMarshallPtrClUint8T(pRecord, recsize, 0, 1); LL2: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); LL1: clXdrMarshallSaNameT(&(pStreamName), 0, 1); LL0: clXdrMarshallClUint16T(&(recsize), 0, 1); return rc; L0: clXdrMarshallClUint16T(&(recsize), 0, 1); L1: clXdrMarshallSaNameT(&(pStreamName), 0, 1); L2: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); L3: clXdrMarshallPtrClUint8T(pRecord, recsize, 0, 1); return rc; }
ClRcT clLogMasterCompListGetServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClUint32T pNumStreams; ClUint32T pBuffLen; ClUint8T* pBuffer; memset(&(pNumStreams), 0, sizeof(ClUint32T)); memset(&(pBuffLen), 0, sizeof(ClUint32T)); memset(&(pBuffer), 0, sizeof(ClUint8T*)); pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogMasterCompListGet_4_0_0(&(pNumStreams), &(pBuffLen), &pBuffer); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallClUint32T(&(pNumStreams), outMsgHdl, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClUint32T(&(pBuffLen), outMsgHdl, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallPtrClUint8T(pBuffer, pBuffLen, outMsgHdl, 1); if (CL_OK != rc) { goto L3; } L3: return rc; return rc; L0: clXdrMarshallClUint32T(&(pNumStreams), 0, 1); L1: clXdrMarshallClUint32T(&(pBuffLen), 0, 1); L2: clXdrMarshallPtrClUint8T(pBuffer, pBuffLen, 0, 1); return rc; }
ClRcT _ckptSectionCheckServer_5_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClHandleT ckptHandle; ClCkptSectionIdT_4_0_0 pSecId; memset(&(ckptHandle), 0, sizeof(ClHandleT)); memset(&(pSecId), 0, sizeof(ClCkptSectionIdT_4_0_0)); rc = clXdrUnmarshallClHandleT( inMsgHdl,&(ckptHandle)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClCkptSectionIdT_4_0_0( inMsgHdl,&(pSecId)); if (CL_OK != rc) { goto LL1; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(ckptEoidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = _ckptSectionCheck_5_0_0(ckptHandle, &(pSecId)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClHandleT(&(ckptHandle), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClCkptSectionIdT_4_0_0(&(pSecId), 0, 1); if (CL_OK != rc) { goto L2; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L2: return rc; LL1: clXdrMarshallClCkptSectionIdT_4_0_0(&(pSecId), 0, 1); LL0: clXdrMarshallClHandleT(&(ckptHandle), 0, 1); return rc; L0: clXdrMarshallClHandleT(&(ckptHandle), 0, 1); L1: clXdrMarshallClCkptSectionIdT_4_0_0(&(pSecId), 0, 1); return rc; }
ClRcT clMsgMessageReceivedClientSync_4_0_0(CL_IN ClIdlHandleT handle, CL_IN ClUint32T sendType, CL_IN ClNameT* pDestination, CL_IN SaMsgMessageT_4_0_0* pMessage, CL_IN ClInt64T sendTime, CL_IN ClHandleT senderHandle, CL_IN ClInt64T timeout) { ClRcT rc = CL_OK; ClVersionT funcVer = {4, 0, 0}; ClUint32T funcNo = CL_EO_GET_FULL_FN_NUM(CL_MSG_CLIENT_SERVER_TABLE_ID, 4); ClBufferHandleT inMsgHdl = 0; ClBufferHandleT outMsgHdl = 0; ClIocAddressT address = {{0}}; ClIdlHandleObjT* pHandleObj = NULL; ClUint32T tempFlags = 0; rc = clHandleCheckout(gIdlClnt.idlDbHdl,handle,(void **)&pHandleObj); if( rc != CL_OK ) { return rc ; } if (CL_IDL_ADDRESSTYPE_IOC == pHandleObj->address.addressType) { address = pHandleObj->address.address.iocAddress; } else if (CL_IDL_ADDRESSTYPE_NAME == pHandleObj->address.addressType) { rc = clNameToObjectReferenceGet(&(pHandleObj->address.address.nameAddress.name), pHandleObj->address.address.nameAddress.attrCount, pHandleObj->address.address.nameAddress.attr, pHandleObj->address.address.nameAddress.contextCookie, (ClUint64T*)&address); if (CL_OK != rc) { return rc; } } else { return CL_IDL_RC(CL_ERR_INVALID_PARAMETER); } rc = clBufferCreate(&inMsgHdl); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClUint32T(&(sendType), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClNameT(pDestination, inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallSaMsgMessageT_4_0_0(pMessage, inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClInt64T(&(sendTime), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClHandleT(&(senderHandle), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClInt64T(&(timeout), inMsgHdl, 0); if (CL_OK != rc) { return rc; } tempFlags |= pHandleObj->flags | (CL_RMD_CALL_NON_PERSISTENT); tempFlags &= ~CL_RMD_CALL_ASYNC; rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, outMsgHdl, tempFlags, &(pHandleObj->options), NULL); if(CL_OK != rc) { return rc; } rc = clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; }
ClRcT clMsgQueueAllocateServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; SaNameT pQName; SaMsgQueueOpenFlagsT_4_0_0 openFlags; SaMsgQueueCreationAttributesT_4_0_0 pCreationAttributes; ClHandleT pQueueHandle; memset(&(pQName), 0, sizeof(SaNameT)); memset(&(openFlags), 0, sizeof(SaMsgQueueOpenFlagsT_4_0_0)); memset(&(pCreationAttributes), 0, sizeof(SaMsgQueueCreationAttributesT_4_0_0)); memset(&(pQueueHandle), 0, sizeof(ClHandleT)); rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pQName)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallSaMsgQueueOpenFlagsT_4_0_0( inMsgHdl,&(openFlags)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaMsgQueueCreationAttributesT_4_0_0( inMsgHdl,&(pCreationAttributes)); if (CL_OK != rc) { goto LL2; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgIdlidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgQueueAllocate_4_0_0(&(pQName), openFlags, &(pCreationAttributes), &(pQueueHandle)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallSaNameT(&(pQName), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallSaMsgQueueOpenFlagsT_4_0_0(&(openFlags), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaMsgQueueCreationAttributesT_4_0_0(&(pCreationAttributes), 0, 1); if (CL_OK != rc) { goto L3; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallClHandleT(&(pQueueHandle), outMsgHdl, 1); if (CL_OK != rc) { goto L4; } L4: return rc; LL2: clXdrMarshallSaMsgQueueCreationAttributesT_4_0_0(&(pCreationAttributes), 0, 1); LL1: clXdrMarshallSaMsgQueueOpenFlagsT_4_0_0(&(openFlags), 0, 1); LL0: clXdrMarshallSaNameT(&(pQName), 0, 1); return rc; L0: clXdrMarshallSaNameT(&(pQName), 0, 1); L1: clXdrMarshallSaMsgQueueOpenFlagsT_4_0_0(&(openFlags), 0, 1); L2: clXdrMarshallSaMsgQueueCreationAttributesT_4_0_0(&(pCreationAttributes), 0, 1); L3: clXdrMarshallClHandleT(&(pQueueHandle), 0, 1); return rc; }
ClRcT clMsgGroupMembershipUpdateServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClMsgSyncActionT_4_0_0 syncAct; SaNameT pGroupName; SaNameT pQueueName; ClUint16T updateCkpt; memset(&(syncAct), 0, sizeof(ClMsgSyncActionT_4_0_0)); memset(&(pGroupName), 0, sizeof(SaNameT)); memset(&(pQueueName), 0, sizeof(SaNameT)); memset(&(updateCkpt), 0, sizeof(ClUint16T)); rc = clXdrUnmarshallClMsgSyncActionT_4_0_0( inMsgHdl,&(syncAct)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pGroupName)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pQueueName)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallClUint16T( inMsgHdl,&(updateCkpt)); if (CL_OK != rc) { goto LL3; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(msgIdlidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clMsgGroupMembershipUpdate_4_0_0(syncAct, &(pGroupName), &(pQueueName), updateCkpt); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClMsgSyncActionT_4_0_0(&(syncAct), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallSaNameT(&(pGroupName), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallSaNameT(&(pQueueName), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallClUint16T(&(updateCkpt), 0, 1); if (CL_OK != rc) { goto L4; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L4: return rc; LL3: clXdrMarshallClUint16T(&(updateCkpt), 0, 1); LL2: clXdrMarshallSaNameT(&(pQueueName), 0, 1); LL1: clXdrMarshallSaNameT(&(pGroupName), 0, 1); LL0: clXdrMarshallClMsgSyncActionT_4_0_0(&(syncAct), 0, 1); return rc; L0: clXdrMarshallClMsgSyncActionT_4_0_0(&(syncAct), 0, 1); L1: clXdrMarshallSaNameT(&(pGroupName), 0, 1); L2: clXdrMarshallSaNameT(&(pQueueName), 0, 1); L3: clXdrMarshallClUint16T(&(updateCkpt), 0, 1); return rc; }
ClRcT clMsgGroupDatabaseUpdateClientSync_4_0_0(CL_IN ClIdlHandleT handle, CL_IN ClMsgSyncActionT_4_0_0 syncupType, CL_IN ClNameT* pGroupName, CL_IN SaMsgQueueGroupPolicyT_4_0_0 policy, CL_IN ClIocPhysicalAddressT_4_0_0 qGroupAddress, CL_IN ClUint16T updateCkpt) { ClRcT rc = CL_OK; ClVersionT funcVer = {4, 0, 0}; ClUint32T funcNo = CL_EO_GET_FULL_FN_NUM(CL_EO_NATIVE_COMPONENT_TABLE_ID, 13); ClBufferHandleT inMsgHdl = 0; ClBufferHandleT outMsgHdl = 0; ClIocAddressT address = {{0}}; ClIdlHandleObjT* pHandleObj = NULL; ClUint32T tempFlags = 0; rc = clHandleCheckout(gIdlClnt.idlDbHdl,handle,(void **)&pHandleObj); if( rc != CL_OK ) { return rc ; } if (CL_IDL_ADDRESSTYPE_IOC == pHandleObj->address.addressType) { address = pHandleObj->address.address.iocAddress; } else if (CL_IDL_ADDRESSTYPE_NAME == pHandleObj->address.addressType) { rc = clNameToObjectReferenceGet(&(pHandleObj->address.address.nameAddress.name), pHandleObj->address.address.nameAddress.attrCount, pHandleObj->address.address.nameAddress.attr, pHandleObj->address.address.nameAddress.contextCookie, (ClUint64T*)&address); if (CL_OK != rc) { return rc; } } else { return CL_IDL_RC(CL_ERR_INVALID_PARAMETER); } rc = clBufferCreate(&inMsgHdl); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClMsgSyncActionT_4_0_0(&(syncupType), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClNameT(pGroupName, inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallSaMsgQueueGroupPolicyT_4_0_0(&(policy), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClIocPhysicalAddressT_4_0_0(&(qGroupAddress), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClUint16T(&(updateCkpt), inMsgHdl, 0); if (CL_OK != rc) { return rc; } tempFlags |= pHandleObj->flags | (CL_RMD_CALL_NON_PERSISTENT); tempFlags &= ~CL_RMD_CALL_ASYNC; rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, outMsgHdl, tempFlags, &(pHandleObj->options), NULL); if(CL_OK != rc) { return rc; } rc = clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; }
ClRcT clLogMasterAttrVerifyNGetServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClLogStreamAttrIDLT_4_0_0 pStreamAttr; SaNameT pStreamName; ClLogStreamScopeT pStreamScope; SaNameT pStreamScopeNode; ClUint16T pStreamId; ClUint64T pStreamMcastAddr; memset(&(pStreamAttr), 0, sizeof(ClLogStreamAttrIDLT_4_0_0)); memset(&(pStreamName), 0, sizeof(SaNameT)); memset(&(pStreamScope), 0, sizeof(ClLogStreamScopeT)); memset(&(pStreamScopeNode), 0, sizeof(SaNameT)); memset(&(pStreamId), 0, sizeof(ClUint16T)); memset(&(pStreamMcastAddr), 0, sizeof(ClUint64T)); rc = clXdrUnmarshallClLogStreamAttrIDLT_4_0_0( inMsgHdl,&(pStreamAttr)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamName)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallClLogStreamScopeT_4_0_0( inMsgHdl,&(pStreamScope)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pStreamScopeNode)); if (CL_OK != rc) { goto LL3; } rc = clXdrUnmarshallClUint16T( inMsgHdl,&(pStreamId)); if (CL_OK != rc) { goto LL4; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogMasterAttrVerifyNGet_4_0_0(&(pStreamAttr), &(pStreamName), &(pStreamScope), &(pStreamScopeNode), &(pStreamId), &(pStreamMcastAddr)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClLogStreamAttrIDLT_4_0_0(&(pStreamAttr), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallSaNameT(&(pStreamName), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); if (CL_OK != rc) { goto L4; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallClUint16T(&(pStreamId), outMsgHdl, 1); if (CL_OK != rc) { goto L5; } rc = clXdrMarshallClUint64T(&(pStreamMcastAddr), outMsgHdl, 1); if (CL_OK != rc) { goto L6; } L6: return rc; LL4: clXdrMarshallClUint16T(&(pStreamId), 0, 1); LL3: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); LL2: clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); LL1: clXdrMarshallSaNameT(&(pStreamName), 0, 1); LL0: clXdrMarshallClLogStreamAttrIDLT_4_0_0(&(pStreamAttr), 0, 1); return rc; L0: clXdrMarshallClLogStreamAttrIDLT_4_0_0(&(pStreamAttr), 0, 1); L1: clXdrMarshallSaNameT(&(pStreamName), 0, 1); L2: clXdrMarshallClLogStreamScopeT_4_0_0(&(pStreamScope), 0, 1); L3: clXdrMarshallSaNameT(&(pStreamScopeNode), 0, 1); L4: clXdrMarshallClUint16T(&(pStreamId), 0, 1); L5: clXdrMarshallClUint64T(&(pStreamMcastAddr), 0, 1); return rc; }
ClRcT clCkptDeputyMasterInfoSyncupClientSync_4_0_0(CL_IN ClIdlHandleT handle, CL_INOUT ClVersionT* pVersion, CL_OUT ClUint32T* numOfCkpts, CL_OUT CkptXlationDBEntryT_4_0_0** pXlationInfo, CL_OUT CkptMasterDBInfoIDLT_4_0_0* pMasterInfo, CL_OUT ClUint32T* mastHdlCount, CL_OUT CkptMasterDBEntryIDLT_4_0_0** pMasterDBInfo, CL_OUT ClUint32T* peerCount, CL_OUT CkptPeerListInfoT_4_0_0** pPeerListInfo, CL_OUT ClUint32T* clientHdlCount, CL_OUT CkptMasterDBClientInfoT_4_0_0** pClientDBInfo) { ClRcT rc = CL_OK; ClVersionT funcVer = {4, 0, 0}; ClUint32T funcNo = CL_EO_GET_FULL_FN_NUM(CL_EO_NATIVE_COMPONENT_TABLE_ID, 18); ClBufferHandleT inMsgHdl = 0; ClBufferHandleT outMsgHdl = 0; ClIocAddressT address = {{0}}; ClIdlHandleObjT* pHandleObj = NULL; ClUint32T tempFlags = 0; rc = clHandleCheckout(gIdlClnt.idlDbHdl,handle,(void **)&pHandleObj); if( rc != CL_OK ) { return rc ; } if (CL_IDL_ADDRESSTYPE_IOC == pHandleObj->address.addressType) { address = pHandleObj->address.address.iocAddress; } else if (CL_IDL_ADDRESSTYPE_NAME == pHandleObj->address.addressType) { rc = clNameToObjectReferenceGet(&(pHandleObj->address.address.nameAddress.name), pHandleObj->address.address.nameAddress.attrCount, pHandleObj->address.address.nameAddress.attr, pHandleObj->address.address.nameAddress.contextCookie, (ClUint64T*)&address); if (CL_OK != rc) { return rc; } } else { return CL_IDL_RC(CL_ERR_INVALID_PARAMETER); } rc = clBufferCreate(&inMsgHdl); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClVersionT(pVersion, inMsgHdl, 1); if (CL_OK != rc) { return rc; } rc = clBufferCreate(&outMsgHdl); if (CL_OK != rc) { return rc; } tempFlags |= pHandleObj->flags | (CL_RMD_CALL_NON_PERSISTENT | CL_RMD_CALL_NEED_REPLY); tempFlags &= ~CL_RMD_CALL_ASYNC; rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, outMsgHdl, tempFlags, &(pHandleObj->options), NULL); if(CL_OK != rc) { clBufferDelete(&outMsgHdl); return rc; } rc = clXdrUnmarshallClVersionT( outMsgHdl, pVersion); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallClUint32T( outMsgHdl, numOfCkpts); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallCkptMasterDBInfoIDLT_4_0_0( outMsgHdl, pMasterInfo); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallClUint32T( outMsgHdl, mastHdlCount); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallClUint32T( outMsgHdl, peerCount); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallClUint32T( outMsgHdl, clientHdlCount); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallPtrCkptXlationDBEntryT_4_0_0( outMsgHdl, (void **)pXlationInfo, *numOfCkpts); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallPtrCkptMasterDBEntryIDLT_4_0_0( outMsgHdl, (void **)pMasterDBInfo, *mastHdlCount); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallPtrCkptPeerListInfoT_4_0_0( outMsgHdl, (void **)pPeerListInfo, *peerCount); if (CL_OK != rc) { return rc; } rc = clXdrUnmarshallPtrCkptMasterDBClientInfoT_4_0_0( outMsgHdl, (void **)pClientDBInfo, *clientHdlCount); if (CL_OK != rc) { return rc; } clBufferDelete(&outMsgHdl); rc = clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; }
ClRcT clLogMasterCompIdChkNGetServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; SaNameT pCompName; ClUint32T pClientId; memset(&(pCompName), 0, sizeof(SaNameT)); memset(&(pClientId), 0, sizeof(ClUint32T)); rc = clXdrUnmarshallSaNameT( inMsgHdl,&(pCompName)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(pClientId)); if (CL_OK != rc) { goto LL1; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogMasterCompIdChkNGet_4_0_0(&(pCompName), &(pClientId)); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallSaNameT(&(pCompName), 0, 1); if (CL_OK != rc) { goto L1; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallClUint32T(&(pClientId), outMsgHdl, 1); if (CL_OK != rc) { goto L2; } L2: return rc; LL1: clXdrMarshallClUint32T(&(pClientId), 0, 1); LL0: clXdrMarshallSaNameT(&(pCompName), 0, 1); return rc; L0: clXdrMarshallSaNameT(&(pCompName), 0, 1); L1: clXdrMarshallClUint32T(&(pClientId), 0, 1); return rc; }
ClRcT clCkptLeaderAddrUpdateClientAsync_4_0_0(CL_IN ClIdlHandleT handle, CL_IN ClUint32T masterAddr, CL_IN ClUint32T deputyAddr,CL_IN CkptEoClCkptLeaderAddrUpdateAsyncCallbackT_4_0_0 fpAsyncCallback, CL_IN void *cookie) { ClRcT rc = CL_OK; ClVersionT funcVer = {4, 0, 0}; ClUint32T funcNo = CL_EO_GET_FULL_FN_NUM(CL_EO_NATIVE_COMPONENT_TABLE_ID, 19); ClBufferHandleT inMsgHdl = 0; ClBufferHandleT outMsgHdl = 0; ClIocAddressT address = {{0}}; ClIdlHandleObjT* pHandleObj = NULL; ClRmdAsyncOptionsT asyncOptions; ClUint32T tempFlags = 0; ClIdlCookieT* pCookie = NULL; rc = clHandleCheckout(gIdlClnt.idlDbHdl,handle,(void **)&pHandleObj); if(rc != CL_OK) { return rc; } if (CL_IDL_ADDRESSTYPE_IOC == pHandleObj->address.addressType) { address = pHandleObj->address.address.iocAddress; } else if (CL_IDL_ADDRESSTYPE_NAME == pHandleObj->address.addressType) { rc = clNameToObjectReferenceGet(&(pHandleObj->address.address.nameAddress.name), pHandleObj->address.address.nameAddress.attrCount, pHandleObj->address.address.nameAddress.attr, pHandleObj->address.address.nameAddress.contextCookie, (ClUint64T*)&address); if (CL_OK != rc) { goto L; } } else { rc = CL_IDL_RC(CL_ERR_INVALID_PARAMETER); goto L; } rc = clBufferCreate(&inMsgHdl); if (CL_OK != rc) { goto L; } rc = clXdrMarshallClUint32T(&(masterAddr), inMsgHdl, 0); if (CL_OK != rc) { goto L; } rc = clXdrMarshallClUint32T(&(deputyAddr), inMsgHdl, 0); if (CL_OK != rc) { goto L; } if(fpAsyncCallback != NULL) { pCookie = (ClIdlCookieT*) clHeapAllocate(sizeof(ClIdlCookieT)); if (NULL == pCookie) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } asyncOptions.pCookie = NULL; asyncOptions.fpCallback = NULL; rc = clBufferCreate(&outMsgHdl); if (CL_OK != rc) { goto L2; } tempFlags |= pHandleObj->flags | (CL_RMD_CALL_ASYNC | CL_RMD_CALL_NON_PERSISTENT | CL_RMD_CALL_NEED_REPLY); pCookie->pCookie = cookie; pCookie->actualCallback = (void(*)())fpAsyncCallback; pCookie->handle = handle; asyncOptions.pCookie = pCookie; asyncOptions.fpCallback = clCkptLeaderAddrUpdateAsyncCallback_4_0_0; rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, outMsgHdl, tempFlags, &(pHandleObj->options), &asyncOptions); if (CL_OK != rc) { goto LL; } } else { tempFlags |= pHandleObj->flags | (CL_RMD_CALL_ASYNC | CL_RMD_CALL_NON_PERSISTENT); rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, 0, tempFlags, &(pHandleObj->options),NULL); if(CL_OK != rc) { goto L; } } clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; LL: clBufferDelete(&outMsgHdl); L2: clHeapFree(pCookie); L: clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; }
ClRcT clLogMasterCompListNotifyServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClUint32T pNumEntries; ClLogCompDataT_4_0_0* pCompData; memset(&(pNumEntries), 0, sizeof(ClUint32T)); memset(&(pCompData), 0, sizeof(ClLogCompDataT_4_0_0*)); rc = clXdrUnmarshallClUint32T( inMsgHdl,&(pNumEntries)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallPtrClLogCompDataT_4_0_0( inMsgHdl,(void**)&(pCompData), pNumEntries); if (CL_OK != rc) { goto LL1; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(LogidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogMasterCompListNotify_4_0_0(pNumEntries, pCompData); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClUint32T(&(pNumEntries), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallPtrClLogCompDataT_4_0_0(pCompData, pNumEntries, 0, 1); if (CL_OK != rc) { goto L2; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L2: return rc; LL1: clXdrMarshallPtrClLogCompDataT_4_0_0(pCompData, pNumEntries, 0, 1); LL0: clXdrMarshallClUint32T(&(pNumEntries), 0, 1); return rc; L0: clXdrMarshallClUint32T(&(pNumEntries), 0, 1); L1: clXdrMarshallPtrClLogCompDataT_4_0_0(pCompData, pNumEntries, 0, 1); return rc; }
ClRcT _ckptClientInfoGetClientSync_6_0_0(CL_IN ClIdlHandleT handle, CL_IN ClHandleT ckptHdl, CL_OUT ClCkptClientInfoListT_4_0_0* pClientInfoList) { ClRcT rc = CL_OK; ClVersionT funcVer = {6, 0, 0}; ClUint32T funcNo = CL_EO_GET_FULL_FN_NUM(CL_EO_NATIVE_COMPONENT_TABLE_ID, 51); ClBufferHandleT inMsgHdl = 0; ClBufferHandleT outMsgHdl = 0; ClIocAddressT address = {{0}}; ClIdlHandleObjT* pHandleObj = NULL; ClUint32T tempFlags = 0; rc = clHandleCheckout(gIdlClnt.idlDbHdl,handle,(void **)&pHandleObj); if( rc != CL_OK ) { return rc ; } if (CL_IDL_ADDRESSTYPE_IOC == pHandleObj->address.addressType) { address = pHandleObj->address.address.iocAddress; } else if (CL_IDL_ADDRESSTYPE_NAME == pHandleObj->address.addressType) { rc = clNameToObjectReferenceGet(&(pHandleObj->address.address.nameAddress.name), pHandleObj->address.address.nameAddress.attrCount, pHandleObj->address.address.nameAddress.attr, pHandleObj->address.address.nameAddress.contextCookie, (ClUint64T*)&address); if (CL_OK != rc) { return rc; } } else { return CL_IDL_RC(CL_ERR_INVALID_PARAMETER); } rc = clBufferCreate(&inMsgHdl); if (CL_OK != rc) { return rc; } rc = clXdrMarshallClHandleT(&(ckptHdl), inMsgHdl, 0); if (CL_OK != rc) { return rc; } rc = clBufferCreate(&outMsgHdl); if (CL_OK != rc) { return rc; } tempFlags |= pHandleObj->flags | (CL_RMD_CALL_NON_PERSISTENT | CL_RMD_CALL_NEED_REPLY); tempFlags &= ~CL_RMD_CALL_ASYNC; rc = clRmdWithMsgVer(address, &funcVer, funcNo, inMsgHdl, outMsgHdl, tempFlags, &(pHandleObj->options), NULL); if(CL_OK != rc) { clBufferDelete(&outMsgHdl); return rc; } rc = clXdrUnmarshallClCkptClientInfoListT_4_0_0( outMsgHdl, pClientInfoList); if (CL_OK != rc) { return rc; } clBufferDelete(&outMsgHdl); rc = clHandleCheckin(gIdlClnt.idlDbHdl,handle); return rc; }
ClRcT clCkptRemSvrWelcomeServer_5_1_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClVersionT pVersion; ClUint32T peerAddr; ClUint8T credential; memset(&(pVersion), 0, sizeof(ClVersionT)); memset(&(peerAddr), 0, sizeof(ClUint32T)); memset(&(credential), 0, sizeof(ClUint8T)); rc = clXdrUnmarshallClUint32T( inMsgHdl,&(peerAddr)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClUint8T( inMsgHdl,&(credential)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallClVersionT( inMsgHdl,&(pVersion)); if (CL_OK != rc) { goto LL2; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(ckptEoidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clCkptRemSvrWelcome_5_1_0(&(pVersion), peerAddr, credential); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClUint32T(&(peerAddr), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClUint8T(&(credential), 0, 1); if (CL_OK != rc) { goto L2; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } rc = clXdrMarshallClVersionT(&(pVersion), outMsgHdl, 1); if (CL_OK != rc) { goto L3; } L3: return rc; LL2: clXdrMarshallClVersionT(&(pVersion), 0, 1); LL1: clXdrMarshallClUint8T(&(credential), 0, 1); LL0: clXdrMarshallClUint32T(&(peerAddr), 0, 1); return rc; L0: clXdrMarshallClUint32T(&(peerAddr), 0, 1); L1: clXdrMarshallClUint8T(&(credential), 0, 1); L2: clXdrMarshallClVersionT(&(pVersion), 0, 1); return rc; }
ClRcT clLogClntFileHdlrDataReceiveServer_4_0_0(ClEoDataT eoData, ClBufferHandleT inMsgHdl, ClBufferHandleT outMsgHdl) { ClIdlContextInfoT *pIdlCtxInfo = NULL; ClRcT rc = CL_OK; ClUint64T streamMcaseAddr; ClUint32T seqNum; ClUint32T srcAddr; ClHandleT hFlusher; ClUint32T nRecords; ClUint32T buffLen; ClUint8T* pBuffer; memset(&(streamMcaseAddr), 0, sizeof(ClUint64T)); memset(&(seqNum), 0, sizeof(ClUint32T)); memset(&(srcAddr), 0, sizeof(ClUint32T)); memset(&(hFlusher), 0, sizeof(ClHandleT)); memset(&(nRecords), 0, sizeof(ClUint32T)); memset(&(buffLen), 0, sizeof(ClUint32T)); memset(&(pBuffer), 0, sizeof(ClUint8T*)); rc = clXdrUnmarshallClUint64T( inMsgHdl,&(streamMcaseAddr)); if (CL_OK != rc) { goto LL0; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(seqNum)); if (CL_OK != rc) { goto LL1; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(srcAddr)); if (CL_OK != rc) { goto LL2; } rc = clXdrUnmarshallClHandleT( inMsgHdl,&(hFlusher)); if (CL_OK != rc) { goto LL3; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(nRecords)); if (CL_OK != rc) { goto LL4; } rc = clXdrUnmarshallClUint32T( inMsgHdl,&(buffLen)); if (CL_OK != rc) { goto LL5; } rc = clXdrUnmarshallPtrClUint8T( inMsgHdl,(void**)&(pBuffer), buffLen); if (CL_OK != rc) { goto LL6; } pIdlCtxInfo = (ClIdlContextInfoT *)clHeapAllocate(sizeof(ClIdlContextInfoT)); if(pIdlCtxInfo == NULL) { return CL_IDL_RC(CL_ERR_NO_MEMORY); } memset(pIdlCtxInfo, 0, sizeof(ClIdlContextInfoT)); pIdlCtxInfo->idlDeferMsg = outMsgHdl; pIdlCtxInfo->inProgress = CL_FALSE; rc = clIdlSyncPrivateInfoSet(AppidlSyncKey, (void *)pIdlCtxInfo); if (CL_OK != rc) { clHeapFree(pIdlCtxInfo); goto L0; } rc = clLogClntFileHdlrDataReceive_4_0_0(streamMcaseAddr, seqNum, srcAddr, hFlusher, nRecords, buffLen, pBuffer); if(pIdlCtxInfo->inProgress == CL_FALSE) { clHeapFree(pIdlCtxInfo); pIdlCtxInfo = NULL; } if (CL_OK != rc) { goto L0; } rc = clXdrMarshallClUint64T(&(streamMcaseAddr), 0, 1); if (CL_OK != rc) { goto L1; } rc = clXdrMarshallClUint32T(&(seqNum), 0, 1); if (CL_OK != rc) { goto L2; } rc = clXdrMarshallClUint32T(&(srcAddr), 0, 1); if (CL_OK != rc) { goto L3; } rc = clXdrMarshallClHandleT(&(hFlusher), 0, 1); if (CL_OK != rc) { goto L4; } rc = clXdrMarshallClUint32T(&(nRecords), 0, 1); if (CL_OK != rc) { goto L5; } rc = clXdrMarshallClUint32T(&(buffLen), 0, 1); if (CL_OK != rc) { goto L6; } rc = clXdrMarshallPtrClUint8T(pBuffer, buffLen, 0, 1); if (CL_OK != rc) { goto L7; } if(pIdlCtxInfo != NULL) { clHeapFree(pIdlCtxInfo); return rc; } L7: return rc; LL6: clXdrMarshallPtrClUint8T(pBuffer, buffLen, 0, 1); LL5: clXdrMarshallClUint32T(&(buffLen), 0, 1); LL4: clXdrMarshallClUint32T(&(nRecords), 0, 1); LL3: clXdrMarshallClHandleT(&(hFlusher), 0, 1); LL2: clXdrMarshallClUint32T(&(srcAddr), 0, 1); LL1: clXdrMarshallClUint32T(&(seqNum), 0, 1); LL0: clXdrMarshallClUint64T(&(streamMcaseAddr), 0, 1); return rc; L0: clXdrMarshallClUint64T(&(streamMcaseAddr), 0, 1); L1: clXdrMarshallClUint32T(&(seqNum), 0, 1); L2: clXdrMarshallClUint32T(&(srcAddr), 0, 1); L3: clXdrMarshallClHandleT(&(hFlusher), 0, 1); L4: clXdrMarshallClUint32T(&(nRecords), 0, 1); L5: clXdrMarshallClUint32T(&(buffLen), 0, 1); L6: clXdrMarshallPtrClUint8T(pBuffer, buffLen, 0, 1); return rc; }