Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tools / dumpscan / internal.h
1 /*
2 * CMUCS AFStools
3 * dumpscan - routines for scanning and manipulating AFS volume dumps
4 *
5 * Copyright (c) 1998 Carnegie Mellon University
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify and distribute this software and its
9 * documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
16 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software_Distribution@CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie Mellon
26 * the rights to redistribute these changes.
27 */
28
29 /* internal.h - Routines for internal use only */
30
31 #include "xfiles.h"
32 #include "dumpscan.h"
33
34
35 /* parsevol.c - Routines to parse volume headers */
36 extern afs_uint32 parse_volhdr(XFILE *, unsigned char *, tagged_field *,
37 afs_uint32, tag_parse_info *, void *, void *);
38
39 /* parsevnode.c - Routines to parse vnodes and their fields */
40 extern afs_uint32 parse_vnode(XFILE *, unsigned char *, tagged_field *,
41 afs_uint32, tag_parse_info *, void *, void *);
42
43 /* directory.c - Routines for parsing AFS directories */
44 extern afs_uint32 parse_directory(XFILE *, dump_parser *, afs_vnode *,
45 afs_uint32, int);
46
47 /* backuphdr.c - Generic support for backup system headers */
48 extern afs_uint32 try_backuphdr(XFILE * X, unsigned char *tag,
49 tagged_field * field, afs_uint32 value,
50 tag_parse_info * pi, void *g_refcon,
51 void *l_refcon);
52
53 /* util.c - Random utilities */
54 extern afs_uint32 handle_return(int, XFILE *, unsigned char, dump_parser *);
55 extern void prep_pi(dump_parser *, tag_parse_info *);
56 extern afs_uint32 match_next_vnode(XFILE *, dump_parser *, dt_uint64 *,
57 afs_uint32);