Prototype UV_Bind
[openafs.git] / src / volser / volser_prototypes.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 AFS_SRC_VOLSER_PROTOTYPES_H
11 #define AFS_SRC_VOLSER_PROTOTYPES_H
12
13 struct nvldbentry;
14 struct volintInfo;
15
16 /* vsprocs.c */
17 extern void MapPartIdIntoName(afs_int32 partId, char *partName);
18
19 extern void MapHostToNetwork(struct nvldbentry *entry);
20
21 extern struct rx_connection *UV_Bind(afs_int32 aserver, afs_int32 port);
22
23 extern int UV_CreateVolume(afs_int32 aserver, afs_int32 apart, char *aname,
24                            afs_uint32 * anewid);
25
26 extern int UV_DeleteVolume(afs_int32 aserver, afs_int32 apart,
27                            afs_uint32 avolid);
28
29 extern int UV_SetSecurity(register struct rx_securityClass *as,
30                           afs_int32 aindex);
31
32 extern int UV_ListOneVolume(afs_int32 aserver, afs_int32 apart,
33                             afs_uint32 volid, struct volintInfo **resultPtr);
34
35 extern int UV_RestoreVolume(afs_int32 toserver, afs_int32 topart,
36                             afs_uint32 tovolid, char tovolname[],
37                             int restoreflags,
38                             afs_int32(*WriteData) (struct rx_call *, void *),
39                             void *rock);
40 #endif