提交 d7ddb158 编写于 作者: X Xiaoyu Wang

TD-12678 datasink interface adjust

上级 4b8cd944
......@@ -73,9 +73,9 @@ void dsEndPut(DataSinkHandle handle);
/**
* Get the length of the data returned by the next call to dsGetDataBlock.
* @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.
......
......@@ -41,9 +41,9 @@ void dsEndPut(DataSinkHandle handle) {
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;
return pHandleImpl->fGetLen(pHandleImpl, pStatus);
*pLen = pHandleImpl->fGetLen(pHandleImpl, pStatus);
}
int32_t dsGetDataBlock(DataSinkHandle handle, SOutPutData* pOutput, int32_t* pStatus) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册