TDengine/include/dnode/mgmt/dnode.h

57 lines
1.1 KiB
C
Raw Permalink Normal View History

/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
2021-11-20 16:13:35 +00:00
#ifndef _TD_DNODE_H_
#define _TD_DNODE_H_
2021-11-22 02:03:41 +00:00
#include "tdef.h"
#ifdef __cplusplus
extern "C" {
#endif
2022-01-12 02:46:52 +00:00
/**
2022-05-16 12:58:14 +00:00
* @brief Initialize the dnode
2022-01-12 02:46:52 +00:00
*
* @return int32_t 0 for success and -1 for failure
*/
2022-10-18 10:28:13 +00:00
int32_t dmInit();
2022-01-12 02:46:52 +00:00
/**
2022-05-16 12:58:14 +00:00
* @brief Cleanup the dnode
2022-01-12 02:46:52 +00:00
*/
2022-04-13 06:00:56 +00:00
void dmCleanup();
2022-01-12 02:46:52 +00:00
2022-03-12 14:56:56 +00:00
/**
2022-05-16 12:58:14 +00:00
* @brief Run dnode.
2022-03-12 14:56:56 +00:00
*/
2022-05-16 12:58:14 +00:00
int32_t dmRun();
2022-03-12 14:56:56 +00:00
2022-05-16 13:36:29 +00:00
/**
* @brief Stop dnode.
*/
void dmStop();
/**
* for tests
*/
bool dmReadyForTest();
#ifdef __cplusplus
}
#endif
2021-11-20 16:13:35 +00:00
#endif /*_TD_DNODE_H_*/