Lines Matching refs:id

66 extern Ret_t smlLockWriteBuffer(InstanceID_t id, MemPtr_t *pWritePosition, MemSize_t *freeSize);
67 extern Ret_t smlUnlockWriteBuffer(InstanceID_t id, MemSize_t writtenBytes);
71 extern InstanceInfoPtr_t findInfo(InstanceID_t id);
72 extern Ret_t removeInfo(InstanceID_t id);
76 SML_API Ret_t smlStartMessage(InstanceID_t id, SmlSyncHdrPtr_t pContent);
77 SML_API Ret_t smlStartMessageExt(InstanceID_t id, SmlSyncHdrPtr_t pContent, SmlVersion_t vers);
78 SML_API Ret_t smlEndMessage(InstanceID_t id, Boolean_t final);
79 SML_API Ret_t smlStartSync(InstanceID_t id, SmlSyncPtr_t pContent);
80 SML_API Ret_t smlEndSync(InstanceID_t id);
83 SML_API Ret_t smlStartAtomic(InstanceID_t id, SmlAtomicPtr_t pContent);
84 SML_API Ret_t smlEndAtomic(InstanceID_t id);
87 SML_API Ret_t smlStartSequence(InstanceID_t id, SmlSequencePtr_t pContent);
88 SML_API Ret_t smlEndSequence(InstanceID_t id);
92 SML_API Ret_t smlAddCmd(InstanceID_t id, SmlAddPtr_t pContent);
94 SML_API Ret_t smlAlertCmd(InstanceID_t id, SmlAlertPtr_t pContent);
95 SML_API Ret_t smlDeleteCmd(InstanceID_t id, SmlDeletePtr_t pContent);
97 SML_API Ret_t smlGetCmd(InstanceID_t id, SmlGetPtr_t pContent);
99 SML_API Ret_t smlPutCmd(InstanceID_t id, SmlPutPtr_t pContent);
100 SML_API Ret_t smlMapCmd(InstanceID_t id, SmlMapPtr_t pContent);
101 SML_API Ret_t smlResultsCmd(InstanceID_t id, SmlResultsPtr_t pContent);
102 SML_API Ret_t smlStatusCmd(InstanceID_t id, SmlStatusPtr_t pContent);
103 SML_API Ret_t smlReplaceCmd(InstanceID_t id, SmlReplacePtr_t pContent);
106 SML_API Ret_t smlCopyCmd(InstanceID_t id, SmlCopyPtr_t pContent);
109 SML_API Ret_t smlExecCmd(InstanceID_t id, SmlExecPtr_t pContent);
112 SML_API Ret_t smlSearchCmd(InstanceID_t id, SmlSearchPtr_t pContent);
116 static Ret_t mgrCreateNextCommand(InstanceID_t id, SmlProtoElement_t cmdType, VoidPtr_t pContent);
117 Ret_t mgrResetWorkspace (InstanceID_t id);
145 SML_API Ret_t smlStartMessage(InstanceID_t id, SmlSyncHdrPtr_t pContent)
148 return smlStartMessageExt(id,pContent,SML_VERS_1_1);
169 SML_API Ret_t smlStartMessageExt(InstanceID_t id, SmlSyncHdrPtr_t pContent, SmlVersion_t vers)
173 InstanceInfoPtr_t pInstanceInfo; // pointer the the instance info structure for this id
181 pInstanceInfo = (InstanceInfoPtr_t)id; // ID is the instance info pointer
187 pInstanceInfo = (InstanceInfoPtr_t) findInfo(id);
195 rc = smlLockWriteBuffer(id, &pCurrentWritePosition, &freeSize);
199 smlUnlockWriteBuffer(id, (MemSize_t)0);
205 smlSetOutgoingBegin(id);
220 smlUnlockWriteBuffer(id, (MemSize_t)0);
230 rc = smlUnlockWriteBuffer(id, (MemSize_t)pCurrentWritePosition-(MemSize_t)pBeginPosition);
248 SML_API Ret_t smlEndMessage(InstanceID_t id, Boolean_t final)
252 InstanceInfoPtr_t pInstanceInfo; // pointer the the instance info structure for this id
260 pInstanceInfo = (InstanceInfoPtr_t)id; // ID is the instance info pointer
266 pInstanceInfo = (InstanceInfoPtr_t) findInfo(id);
276 rc = smlLockWriteBuffer(id, &pCurrentWritePosition, &freeSize);
280 smlUnlockWriteBuffer(id, (MemSize_t)0);
296 smlUnlockWriteBuffer(id, (MemSize_t)0);
308 rc = smlUnlockWriteBuffer(id, (MemSize_t)pCurrentWritePosition-(MemSize_t)pBeginPosition);
332 SML_API Ret_t smlStartSync(InstanceID_t id, SmlSyncPtr_t pContent)
334 return mgrCreateNextCommand(id, SML_PE_SYNC_START, pContent);
349 SML_API Ret_t smlEndSync(InstanceID_t id)
351 return mgrCreateNextCommand(id, SML_PE_SYNC_END, NULL);
371 SML_API Ret_t smlStartAtomic(InstanceID_t id, SmlAtomicPtr_t pContent)
373 return mgrCreateNextCommand(id, SML_PE_ATOMIC_START, pContent);
388 SML_API Ret_t smlEndAtomic(InstanceID_t id)
390 return mgrCreateNextCommand(id, SML_PE_ATOMIC_END, NULL);
411 SML_API Ret_t smlStartSequence(InstanceID_t id, SmlSequencePtr_t pContent)
413 return mgrCreateNextCommand(id, SML_PE_SEQUENCE_START, pContent);
429 SML_API Ret_t smlEndSequence(InstanceID_t id)
431 return mgrCreateNextCommand(id, SML_PE_SEQUENCE_END, NULL);
452 SML_API Ret_t smlAddCmd(InstanceID_t id, SmlAddPtr_t pContent)
454 return mgrCreateNextCommand(id, SML_PE_ADD, pContent);
473 SML_API Ret_t smlAlertCmd(InstanceID_t id, SmlAlertPtr_t pContent)
475 return mgrCreateNextCommand(id, SML_PE_ALERT, pContent);
495 SML_API Ret_t smlDeleteCmd(InstanceID_t id, SmlDeletePtr_t pContent)
497 return mgrCreateNextCommand(id, SML_PE_DELETE, pContent);
519 SML_API Ret_t smlGetCmd(InstanceID_t id, SmlGetPtr_t pContent)
521 return mgrCreateNextCommand(id, SML_PE_GET, pContent);
541 SML_API Ret_t smlPutCmd(InstanceID_t id, SmlPutPtr_t pContent)
543 return mgrCreateNextCommand(id, SML_PE_PUT, pContent);
562 SML_API Ret_t smlMapCmd(InstanceID_t id, SmlMapPtr_t pContent)
564 return mgrCreateNextCommand(id, SML_PE_MAP, pContent);
583 SML_API Ret_t smlResultsCmd(InstanceID_t id, SmlResultsPtr_t pContent)
585 return mgrCreateNextCommand(id, SML_PE_RESULTS, pContent);
606 SML_API Ret_t smlStatusCmd(InstanceID_t id, SmlStatusPtr_t pContent)
608 return mgrCreateNextCommand(id, SML_PE_STATUS, pContent);
627 SML_API Ret_t smlReplaceCmd(InstanceID_t id, SmlReplacePtr_t pContent)
629 return mgrCreateNextCommand(id, SML_PE_REPLACE, pContent);
651 SML_API Ret_t smlCopyCmd(InstanceID_t id, SmlCopyPtr_t pContent)
653 return mgrCreateNextCommand(id, SML_PE_COPY, pContent);
674 SML_API Ret_t smlExecCmd(InstanceID_t id, SmlExecPtr_t pContent)
676 return mgrCreateNextCommand(id, SML_PE_EXEC, pContent);
697 SML_API Ret_t smlSearchCmd(InstanceID_t id, SmlSearchPtr_t pContent)
699 return mgrCreateNextCommand(id, SML_PE_SEARCH, pContent);
724 SML_API Ret_t smlStartEvaluation(InstanceID_t id)
726 InstanceInfoPtr_t pInstanceInfo; // pointer the the instance info structure for this id
730 pInstanceInfo = (InstanceInfoPtr_t)id; // ID is the instance info pointer
736 pInstanceInfo = (InstanceInfoPtr_t) findInfo(id);
766 SML_API Ret_t smlEndEvaluation(InstanceID_t id, MemSize_t *freemem)
768 InstanceInfoPtr_t pInstanceInfo; // pointer the the instance info structure for this id
772 pInstanceInfo = (InstanceInfoPtr_t)id; // ID is the instance info pointer
778 pInstanceInfo = (InstanceInfoPtr_t) findInfo(id);
788 rc = xltEndEvaluation(id, (XltEncoderPtr_t)(pInstanceInfo->encoderState), freemem);
818 static Ret_t mgrCreateNextCommand(InstanceID_t id, SmlProtoElement_t cmdType, VoidPtr_t pContent)
821 InstanceInfoPtr_t pInstanceInfo; // pointer the the instance info structure for this id
829 pInstanceInfo = (InstanceInfoPtr_t)id; // ID is the instance info pointer
835 pInstanceInfo = (InstanceInfoPtr_t) findInfo(id);
844 rc = smlLockWriteBuffer(id, &pCurrentWritePosition, &freeSize);
848 smlUnlockWriteBuffer(id, (MemSize_t)0);
866 smlUnlockWriteBuffer(id, (MemSize_t)0);
868 pInstanceInfo->callbacks->transmitChunkFunc(id,NULL);
870 smlLockWriteBuffer(id, &pCurrentWritePosition, &freeSize);
878 smlUnlockWriteBuffer(id, (MemSize_t)0);
888 smlUnlockWriteBuffer(id, (MemSize_t)0);
897 rc = smlUnlockWriteBuffer(id, (MemSize_t)pCurrentWritePosition-(MemSize_t)pBeginPosition);