jt2594838 commented on code in PR #418: URL: https://github.com/apache/tsfile/pull/418#discussion_r1972848266
########## cpp/src/cwrapper/tsfile_cwrapper.h: ########## @@ -109,94 +118,246 @@ typedef void* TsRecord; typedef void* ResultSet; typedef int32_t ERRNO; -typedef int64_t timestamp; +typedef int64_t Timestamp; -#ifdef __cplusplus -extern "C" { -#endif +/*--------------------------TsFile Reader and Writer------------------------ */ + +/** + * @brief Creates a file for writing. + * + * @param pathname Target file path to create. + * @param err_code [out] E_OK(0), or check error code in errno_define.h. + * + * @return WriteFile Valid handle on success. + * + * @note Call free_write_file() to release resources. Review Comment: Call tsfile_writer_close() before calling free_write_file() -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@tsfile.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org