diff --git a/source/dnode/mgmt/impl/inc/dndBnode.h b/source/dnode/mgmt/impl/inc/dndBnode.h index 853b54ff692009f3115e7d6a9ad4f68cbf6cb881..080cd2e487c2ca74bb3151742b4eed91a28040b3 100644 --- a/source/dnode/mgmt/impl/inc/dndBnode.h +++ b/source/dnode/mgmt/impl/inc/dndBnode.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitBnode(SDnode *pDnode); void dndCleanupBnode(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndEnv.h b/source/dnode/mgmt/impl/inc/dndEnv.h new file mode 100644 index 0000000000000000000000000000000000000000..61d9dd93bec13a1bfd154de442522e2d6bf3d5ed --- /dev/null +++ b/source/dnode/mgmt/impl/inc/dndEnv.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_DND_ENV_H_ +#define _TD_DND_ENV_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "dndEnv.h" + + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_DND_ENV_H_*/ \ No newline at end of file diff --git a/source/dnode/mgmt/impl/inc/dndMgmt.h b/source/dnode/mgmt/impl/inc/dndMgmt.h index 0df3af23d5de1ac3f16798a1964d04a93da14834..9cc0c4ae66da13c41c56a298e8a7839fa2a2095f 100644 --- a/source/dnode/mgmt/impl/inc/dndMgmt.h +++ b/source/dnode/mgmt/impl/inc/dndMgmt.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitMgmt(SDnode *pDnode); void dndStopMgmt(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndMnode.h b/source/dnode/mgmt/impl/inc/dndMnode.h index 0f7cec230e8d9d6f9153c2f5a3cf27df3d833f75..dafbae10ad589fff719c6311c7be707f69d698b9 100644 --- a/source/dnode/mgmt/impl/inc/dndMnode.h +++ b/source/dnode/mgmt/impl/inc/dndMnode.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitMnode(SDnode *pDnode); void dndCleanupMnode(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndQnode.h b/source/dnode/mgmt/impl/inc/dndQnode.h index 677c234679db6cbab2103cdc487e0a22406d716c..2a25dca1c6dc324f3d98d425e5962df0a410aa13 100644 --- a/source/dnode/mgmt/impl/inc/dndQnode.h +++ b/source/dnode/mgmt/impl/inc/dndQnode.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitQnode(SDnode *pDnode); void dndCleanupQnode(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndSnode.h b/source/dnode/mgmt/impl/inc/dndSnode.h index 8cb883794df6b3f370278e6ba98c45f197e790fc..b21e9191e8fbedc064f7b9823cec1e68acb70d90 100644 --- a/source/dnode/mgmt/impl/inc/dndSnode.h +++ b/source/dnode/mgmt/impl/inc/dndSnode.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitSnode(SDnode *pDnode); void dndCleanupSnode(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndTransport.h b/source/dnode/mgmt/impl/inc/dndTransport.h index 42fb379fc1bf201ec617ce6b7b3236a5eff23782..e0ea21cba8e16f41bae17c6e5dccd0bb8558480e 100644 --- a/source/dnode/mgmt/impl/inc/dndTransport.h +++ b/source/dnode/mgmt/impl/inc/dndTransport.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitTrans(SDnode *pDnode); void dndCleanupTrans(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndVnodes.h b/source/dnode/mgmt/impl/inc/dndVnodes.h index a78db602febe4a1ca8274eebf00e9be5674203f7..f5177778ec48556537cf4004666257ba6e07502e 100644 --- a/source/dnode/mgmt/impl/inc/dndVnodes.h +++ b/source/dnode/mgmt/impl/inc/dndVnodes.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitVnodes(SDnode *pDnode); void dndCleanupVnodes(SDnode *pDnode); diff --git a/source/dnode/mgmt/impl/inc/dndWorker.h b/source/dnode/mgmt/impl/inc/dndWorker.h index 49ef88e67d31e27b2968597b7c555f06128cacf3..9c037d91c72f02e451dfbf379dc6de4b9ce6a8fc 100644 --- a/source/dnode/mgmt/impl/inc/dndWorker.h +++ b/source/dnode/mgmt/impl/inc/dndWorker.h @@ -19,7 +19,7 @@ #ifdef __cplusplus extern "C" { #endif -#include "dndInt.h" +#include "dndEnv.h" int32_t dndInitWorker(SDnode *pDnode, SDnodeWorker *pWorker, EWorkerType type, const char *name, int32_t minNum, int32_t maxNum, void *queueFp); diff --git a/source/dnode/mgmt/impl/src/dnode.c b/source/dnode/mgmt/impl/src/dndEnv.c similarity index 100% rename from source/dnode/mgmt/impl/src/dnode.c rename to source/dnode/mgmt/impl/src/dndEnv.c