more code
This commit is contained in:
parent
c9dc9b3170
commit
592c4393dd
|
@ -25,14 +25,15 @@ extern "C" {
|
||||||
typedef struct STFile STFile;
|
typedef struct STFile STFile;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
TSDB_FTYPE_HEAD = 0, // .head
|
TSDB_FTYPE_HEAD = 0, // .head
|
||||||
TSDB_FTYPE_DATA, // .data
|
TSDB_FTYPE_DATA, // .data
|
||||||
TSDB_FTYPE_SMA, // .sma
|
TSDB_FTYPE_SMA, // .sma
|
||||||
TSDB_FTYPE_TOMB, // .tomb
|
TSDB_FTYPE_TOMB, // .tomb
|
||||||
TSDB_FTYPE_MAX, // max
|
TSDB_FTYPE_STT = TSDB_FTYPE_TOMB + 2, // .stt
|
||||||
TSDB_FTYPE_STT, // .stt
|
|
||||||
} tsdb_ftype_t;
|
} tsdb_ftype_t;
|
||||||
|
|
||||||
|
#define TSDB_FTYPE_MAX (TSDB_FTYPE_TOMB + 1)
|
||||||
|
|
||||||
int32_t tsdbTFileInit(STsdb *pTsdb, STFile *pFile);
|
int32_t tsdbTFileInit(STsdb *pTsdb, STFile *pFile);
|
||||||
int32_t tsdbTFileClear(STFile *pFile);
|
int32_t tsdbTFileClear(STFile *pFile);
|
||||||
|
|
||||||
|
@ -49,8 +50,8 @@ struct STFile {
|
||||||
int32_t fid;
|
int32_t fid;
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
int32_t level;
|
int32_t lvl;
|
||||||
int32_t nSeg;
|
int32_t nseg;
|
||||||
} stt;
|
} stt;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue