/* * 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 _TSDB_UTIL_H #define _TSDB_UTIL_H #include "tsdb.h" #ifdef __cplusplus extern "C" { #endif /* Exposed Handle */ typedef struct SDelBlock SDelBlock; typedef struct SDelBlk SDelBlk; /* Exposed APIs */ int32_t tDelBlockCreate(SDelBlock *pDelBlock); int32_t tDelBlockDestroy(SDelBlock *pDelBlock); int32_t tDelBlockClear(SDelBlock *pDelBlock); int32_t tDelBlockAppend(SDelBlock *pDelBlock, const TABLEID *tbid, const SDelData *pDelData); /* Exposed Structs */ struct SDelBlock { SColData aColData[5]; // }; struct SDelBlk { int64_t suidMax; int64_t suidMin; int64_t uidMax; int64_t uidMin; int64_t verMax; int64_t verMin; }; #ifdef __cplusplus } #endif #endif /*_TSDB_UTIL_H*/