]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - db/flist.h
xfs_db: remove unnessary checks in process_leaf_node_dir_v2_free
[thirdparty/xfsprogs-dev.git] / db / flist.h
CommitLineData
2bd0ea18 1/*
da23017d
NS
2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
2bd0ea18
NS
4 */
5
6struct field;
7
8typedef struct flist {
9 char *name;
dfc130f3 10 const struct field *fld;
2bd0ea18
NS
11 struct flist *child;
12 struct flist *sibling;
13 int low;
14 int high;
15 int flags;
16 int offset;
17} flist_t;
18
19/*
20 * Flags for flist
21 */
22#define FL_OKLOW 1
23#define FL_OKHIGH 2
24
25typedef enum tokty {
26 TT_NAME, TT_NUM, TT_STRING, TT_LB, TT_RB, TT_DASH, TT_DOT, TT_END
27} tokty_t;
28
29typedef struct ftok {
30 char *tok;
31 tokty_t tokty;
32} ftok_t;
33
34extern void flist_free(flist_t *fl);
35extern flist_t *flist_make(char *name);
36extern int flist_parse(const struct field *fields, flist_t *fl, void *obj,
37 int startoff);
38extern void flist_print(flist_t *fl);
39extern flist_t *flist_scan(char *name);