From 5ee1cba1738cd39f32e958a0319675030c4bce4a Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 8 May 2024 10:18:19 +0800 Subject: [PATCH] fix(test): fix syntax error. --- include/libs/stream/streammsg.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/libs/stream/streammsg.h b/include/libs/stream/streammsg.h index d39a9b0cba..a4dead7475 100644 --- a/include/libs/stream/streammsg.h +++ b/include/libs/stream/streammsg.h @@ -16,6 +16,10 @@ #ifndef TDENGINE_STREAMMSG_H #define TDENGINE_STREAMMSG_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct SStreamChildEpInfo { int32_t nodeId; int32_t childId; @@ -143,7 +147,7 @@ struct SStreamRetrieveReq { int32_t tEncodeStreamRetrieveReq(SEncoder* pEncoder, const struct SStreamRetrieveReq* pReq); int32_t tDecodeStreamRetrieveReq(SDecoder* pDecoder, struct SStreamRetrieveReq* pReq); -void tCleanupStreamRetrieveReq(struct SStreamRetrieveReq* pReq); +void tCleanupStreamRetrieveReq(struct SStreamRetrieveReq* pReq); typedef struct SStreamTaskCheckpointReq { int64_t streamId; @@ -172,4 +176,8 @@ typedef struct { int32_t reqType; } SStreamTaskRunReq; +#ifdef __cplusplus +} +#endif + #endif // TDENGINE_STREAMMSG_H