windows-build-updates-20030314
[openafs.git] / src / WINNT / afsreg / vptab.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef VPTAB_H_
11 #define VPTAB_H_
12
13 /* Functions and definitions for accessing the vice partition table */
14
15 /* Sizes of strings */
16
17 #define VPTABSIZE_NAME   32
18 #define VPTABSIZE_DEV    32
19
20 /* Entry structure */
21
22 struct vptab {
23     char    vp_name[VPTABSIZE_NAME];      /* vice partition name */
24     char    vp_dev[VPTABSIZE_DEV];        /* device path */
25 };
26
27 struct vpt_iter {
28     char *last;
29     char *vpenum;
30 };
31
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 extern int
38 vpt_Start(struct vpt_iter *iterp);
39
40 extern int
41 vpt_NextEntry(struct vpt_iter *iterp,
42               struct vptab *vptabp);
43
44 extern int
45 vpt_Finish(struct vpt_iter *iterp);
46
47 extern int
48 vpt_AddEntry(const struct vptab *vptabp);
49
50 extern int
51 vpt_RemoveEntry(const char *vpname);
52
53 extern int
54 vpt_PartitionNameValid(const char *vpname);
55
56 extern int
57 vpt_DeviceNameValid(const char *devname);
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif /* VPTAB_H_ */