59 lines
969 B
C
Raw Normal View History

2000-11-04 02:13:13 +00:00
/* Copyright (C) 1998 Transarc Corporation. All Rights Reserved.
*
*/
#ifndef VPTAB_H_
#define VPTAB_H_
/* Functions and definitions for accessing the vice partition table */
/* Sizes of strings */
#define VPTABSIZE_NAME 32
#define VPTABSIZE_DEV 32
/* Entry structure */
struct vptab {
char vp_name[VPTABSIZE_NAME]; /* vice partition name */
char vp_dev[VPTABSIZE_DEV]; /* device path */
};
struct vpt_iter {
char *last;
char *vpenum;
};
#ifdef __cplusplus
extern "C" {
#endif
extern int
vpt_Start(struct vpt_iter *iterp);
extern int
vpt_NextEntry(struct vpt_iter *iterp,
struct vptab *vptabp);
extern int
vpt_Finish(struct vpt_iter *iterp);
extern int
vpt_AddEntry(const struct vptab *vptabp);
extern int
vpt_RemoveEntry(const char *vpname);
extern int
vpt_PartitionNameValid(const char *vpname);
extern int
vpt_DeviceNameValid(const char *devname);
#ifdef __cplusplus
}
#endif
#endif /* VPTAB_H_ */