From 4c7993afbb58febe81a80d9fe6d094de4ffac83d Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 22 Sep 2021 15:31:07 +0800 Subject: [PATCH] refact --- include/client/consumer/consumer.h | 27 +++++++++++++++++++++++++++ include/client/stream/stream.h | 27 +++++++++++++++++++++++++++ include/{ => dnode}/mnode/mnode.h | 0 include/{ => dnode}/qnode/qnode.h | 0 include/dnode/vnode/meta/meta.h | 27 +++++++++++++++++++++++++++ include/dnode/vnode/tq/tq.h | 27 +++++++++++++++++++++++++++ include/dnode/vnode/tsdb/tsdb.h | 27 +++++++++++++++++++++++++++ include/dnode/vnode/vnode.h | 14 ++++++++++++++ include/libs/asvc/asvc.h | 27 +++++++++++++++++++++++++++ include/libs/raft/raft.h | 27 +++++++++++++++++++++++++++ include/{ => libs}/tkv/tkv.h | 0 src/CMakeLists.txt | 7 +++++++ 12 files changed, 210 insertions(+) create mode 100644 include/client/consumer/consumer.h create mode 100644 include/client/stream/stream.h rename include/{ => dnode}/mnode/mnode.h (100%) rename include/{ => dnode}/qnode/qnode.h (100%) create mode 100644 include/dnode/vnode/meta/meta.h create mode 100644 include/dnode/vnode/tq/tq.h create mode 100644 include/dnode/vnode/tsdb/tsdb.h create mode 100644 include/dnode/vnode/vnode.h create mode 100644 include/libs/asvc/asvc.h create mode 100644 include/libs/raft/raft.h rename include/{ => libs}/tkv/tkv.h (100%) diff --git a/include/client/consumer/consumer.h b/include/client/consumer/consumer.h new file mode 100644 index 0000000000..b957f1a025 --- /dev/null +++ b/include/client/consumer/consumer.h @@ -0,0 +1,27 @@ +/* + * 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_CONSUMER_H_ +#define _TD_CONSUMER_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_CONSUMER_H_*/ \ No newline at end of file diff --git a/include/client/stream/stream.h b/include/client/stream/stream.h new file mode 100644 index 0000000000..79b247c61c --- /dev/null +++ b/include/client/stream/stream.h @@ -0,0 +1,27 @@ +/* + * 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_STREAM_H_ +#define _TD_STREAM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_STREAM_H_*/ \ No newline at end of file diff --git a/include/mnode/mnode.h b/include/dnode/mnode/mnode.h similarity index 100% rename from include/mnode/mnode.h rename to include/dnode/mnode/mnode.h diff --git a/include/qnode/qnode.h b/include/dnode/qnode/qnode.h similarity index 100% rename from include/qnode/qnode.h rename to include/dnode/qnode/qnode.h diff --git a/include/dnode/vnode/meta/meta.h b/include/dnode/vnode/meta/meta.h new file mode 100644 index 0000000000..c584c03de0 --- /dev/null +++ b/include/dnode/vnode/meta/meta.h @@ -0,0 +1,27 @@ +/* + * 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_META_H_ +#define _TD_META_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_META_H_*/ \ No newline at end of file diff --git a/include/dnode/vnode/tq/tq.h b/include/dnode/vnode/tq/tq.h new file mode 100644 index 0000000000..77d6cdf2c9 --- /dev/null +++ b/include/dnode/vnode/tq/tq.h @@ -0,0 +1,27 @@ +/* + * 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_TQ_H_ +#define _TD_TQ_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_TQ_H_*/ \ No newline at end of file diff --git a/include/dnode/vnode/tsdb/tsdb.h b/include/dnode/vnode/tsdb/tsdb.h new file mode 100644 index 0000000000..1baf5ef2ee --- /dev/null +++ b/include/dnode/vnode/tsdb/tsdb.h @@ -0,0 +1,27 @@ +/* + * 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_TSDB_H_ +#define _TD_TSDB_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_TSDB_H_*/ \ No newline at end of file diff --git a/include/dnode/vnode/vnode.h b/include/dnode/vnode/vnode.h new file mode 100644 index 0000000000..6dea4a4e57 --- /dev/null +++ b/include/dnode/vnode/vnode.h @@ -0,0 +1,14 @@ +/* + * 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 . + */ \ No newline at end of file diff --git a/include/libs/asvc/asvc.h b/include/libs/asvc/asvc.h new file mode 100644 index 0000000000..f8c6977269 --- /dev/null +++ b/include/libs/asvc/asvc.h @@ -0,0 +1,27 @@ +/* + * 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_ASVC_H_ +#define _TD_ASVC_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_ASVC_H_*/ \ No newline at end of file diff --git a/include/libs/raft/raft.h b/include/libs/raft/raft.h new file mode 100644 index 0000000000..1eedc0f4b8 --- /dev/null +++ b/include/libs/raft/raft.h @@ -0,0 +1,27 @@ +/* + * 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_RAFT_H_ +#define _TD_RAFT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_RAFT_H_*/ \ No newline at end of file diff --git a/include/tkv/tkv.h b/include/libs/tkv/tkv.h similarity index 100% rename from include/tkv/tkv.h rename to include/libs/tkv/tkv.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6fa4aeac20..b35cf60dab 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,13 @@ +# Base components add_subdirectory(os) add_subdirectory(util) add_subdirectory(common) +# Library components + +# Service components +# add_subdirectory(mnode) +# add_subdirectory(vnode) +# add_subdirectory(qnode) add_subdirectory(dnode)