From 25bc2b3a35496adb62d79de1e033193a00261db5 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 11 Jan 2022 17:44:55 -0800 Subject: [PATCH] rename files --- source/dnode/mgmt/impl/inc/dndBnode.h | 2 +- source/dnode/mgmt/impl/inc/dndEnv.h | 30 +++++++++++++++++++ source/dnode/mgmt/impl/inc/dndMgmt.h | 2 +- source/dnode/mgmt/impl/inc/dndMnode.h | 2 +- source/dnode/mgmt/impl/inc/dndQnode.h | 2 +- source/dnode/mgmt/impl/inc/dndSnode.h | 2 +- source/dnode/mgmt/impl/inc/dndTransport.h | 2 +- source/dnode/mgmt/impl/inc/dndVnodes.h | 2 +- source/dnode/mgmt/impl/inc/dndWorker.h | 2 +- .../dnode/mgmt/impl/src/{dnode.c => dndEnv.c} | 0 10 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 source/dnode/mgmt/impl/inc/dndEnv.h rename source/dnode/mgmt/impl/src/{dnode.c => dndEnv.c} (100%) diff --git a/source/dnode/mgmt/impl/inc/dndBnode.h b/source/dnode/mgmt/impl/inc/dndBnode.h index 853b54ff69..080cd2e487 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 0000000000..61d9dd93be --- /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 0df3af23d5..9cc0c4ae66 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 0f7cec230e..dafbae10ad 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 677c234679..2a25dca1c6 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 8cb883794d..b21e9191e8 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 42fb379fc1..e0ea21cba8 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 a78db602fe..f5177778ec 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 49ef88e67d..9c037d91c7 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