TD-12678 datasink interface adjust
This commit is contained in:
parent
4b8cd944ac
commit
d7ddb1589b
|
@ -73,9 +73,9 @@ void dsEndPut(DataSinkHandle handle);
|
||||||
/**
|
/**
|
||||||
* Get the length of the data returned by the next call to dsGetDataBlock.
|
* Get the length of the data returned by the next call to dsGetDataBlock.
|
||||||
* @param handle
|
* @param handle
|
||||||
* @return data length
|
* @param pLen data length
|
||||||
*/
|
*/
|
||||||
int32_t dsGetDataLength(DataSinkHandle handle, int32_t* pStatus);
|
void dsGetDataLength(DataSinkHandle handle, int32_t* pLen, int32_t* pStatus);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get data, the caller needs to allocate data memory.
|
* Get data, the caller needs to allocate data memory.
|
|
@ -41,9 +41,9 @@ void dsEndPut(DataSinkHandle handle) {
|
||||||
return pHandleImpl->fEndPut(pHandleImpl);
|
return pHandleImpl->fEndPut(pHandleImpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t dsGetDataLength(DataSinkHandle handle, int32_t* pStatus) {
|
void dsGetDataLength(DataSinkHandle handle, int32_t* pLen, int32_t* pStatus) {
|
||||||
SDataSinkHandle* pHandleImpl = (SDataSinkHandle*)handle;
|
SDataSinkHandle* pHandleImpl = (SDataSinkHandle*)handle;
|
||||||
return pHandleImpl->fGetLen(pHandleImpl, pStatus);
|
*pLen = pHandleImpl->fGetLen(pHandleImpl, pStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t dsGetDataBlock(DataSinkHandle handle, SOutPutData* pOutput, int32_t* pStatus) {
|
int32_t dsGetDataBlock(DataSinkHandle handle, SOutPutData* pOutput, int32_t* pStatus) {
|
||||||
|
|
Loading…
Reference in New Issue