#ifndef _VSUTILS_PROTOTYPES_H #define _VSUTILS_PROTOTYPES_H /* vsutils.c */ extern int VLDB_CreateEntry(struct nvldbentry *entryp); extern int VLDB_GetEntryByID(afs_uint32 volid, afs_int32 voltype, struct nvldbentry *entryp); extern int VLDB_GetEntryByName(char *namep, struct nvldbentry *entryp); extern int VLDB_ReplaceEntry(afs_uint32 volid, afs_int32 voltype, struct nvldbentry *entryp, afs_int32 releasetype); extern int VLDB_ListAttributes(VldbListByAttributes *attrp, afs_int32 *entriesp, nbulkentries *blkentriesp); extern int VLDB_ListAttributesN2(VldbListByAttributes *attrp, char *name, afs_int32 thisindex, afs_int32 *nentriesp, nbulkentries *blkentriesp, afs_int32 *nextindexp); extern int VLDB_CreateEntryU(struct uvldbentry *entryp); extern int VLDB_GetEntryByIDU(afs_uint32 volid, afs_int32 voltype, struct uvldbentry *entryp); extern int VLDB_GetEntryByNameU(char *namep, struct uvldbentry *entryp); extern int VLDB_ReplaceEntryU(afs_uint32 volid, afs_int32 voltype, struct uvldbentry *entryp, afs_int32 releasetype); extern int VLDB_ListAttributesU(VldbListByAttributes *attrp, afs_int32 *entriesp, ubulkentries *blkentriesp); extern int VLDB_ListAttributesN2U(VldbListByAttributes *attrp, char *name, afs_int32 thisindex, afs_int32 *nentriesp, ubulkentries *blkentriesp, afs_int32 *nextindexp); extern int VLDB_IsSameAddrs(afs_uint32 serv1, afs_uint32 serv2, afs_int32 *errorp); extern void vsu_SetCrypt(int cryptflag); extern afs_int32 vsu_ClientInit(int noAuthFlag, const char *confDir, char *cellName, afs_int32 sauth, struct ubik_client **uclientp, int (*secproc)(struct rx_securityClass *, afs_int32)); extern int vsu_ExtractName(char rname[], char name[]); extern afs_uint32 vsu_GetVolumeID(char *astring, struct ubik_client *acstruct, afs_int32 *errp); /* private */ extern void nvlentry_to_uvlentry(struct nvldbentry *nentryp, struct uvldbentry *uentryp); extern int uvlentry_to_nvlentry(struct uvldbentry *uentryp, struct nvldbentry *nentryp); #endif