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