]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - db/type.h
e8d8df718ac9de868d78ded13d5087d3fa8987c6
2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #define szof(x,y) sizeof(((x *)0)->y)
22 #define szcount(x,y) (szof(x,y) / szof(x,y[0]))
26 TYP_AGF
, TYP_AGFL
, TYP_AGI
, TYP_ATTR
, TYP_BMAPBTA
,
27 TYP_BMAPBTD
, TYP_BNOBT
, TYP_CNTBT
, TYP_DATA
,
28 TYP_DIR2
, TYP_DQBLK
, TYP_INOBT
, TYP_INODATA
, TYP_INODE
,
29 TYP_LOG
, TYP_RTBITMAP
, TYP_RTSUMMARY
, TYP_SB
, TYP_SYMLINK
,
30 TYP_TEXT
, TYP_FINOBT
, TYP_NONE
36 typedef void (*opfunc_t
)(const struct field
*fld
, int argc
, char **argv
);
37 typedef void (*pfunc_t
)(int action
, const struct field
*fld
, int argc
, char **argv
);
44 const struct field
*fields
;
45 const struct xfs_buf_ops
*bops
;
47 extern const typ_t
*typtab
, *cur_typ
;
49 extern void type_init(void);
50 extern void type_set_tab_crc(void);
51 extern void handle_block(int action
, const struct field
*fields
, int argc
,
53 extern void handle_string(int action
, const struct field
*fields
, int argc
,
55 extern void handle_struct(int action
, const struct field
*fields
, int argc
,
57 extern void handle_text(int action
, const struct field
*fields
, int argc
,