/* * 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/>. */#ifndef TDENGINE_VNODE_SYNC_H#define TDENGINE_VNODE_SYNC_H#ifdef __cplusplusextern"C"{#endif#include "vnodeInt.h"uint32_tvnodeGetFileInfo(int32_tvgId,char*name,uint32_t*index,uint32_teindex,int64_t*size,uint64_t*fver);int32_tvnodeGetWalInfo(int32_tvgId,char*fileName,int64_t*fileId);voidvnodeNotifyRole(int32_tvgId,int8_trole);voidvnodeCtrlFlow(int32_tvgId,int32_tlevel);int32_tvnodeNotifyFileSynced(int32_tvgId,uint64_tfversion);voidvnodeConfirmForard(int32_tvgId,void*wparam,int32_tcode);int32_tvnodeWriteToCache(int32_tvgId,void*wparam,int32_tqtype,void*rparam);int32_tvnodeGetVersion(int32_tvgId,uint64_t*fver,uint64_t*wver);voidvnodeConfirmForward(void*pVnode,uint64_tversion,int32_tcode);#ifdef __cplusplus}#endif#endif