Standardize License information
[openafs.git] / src / libadmin / vos / vosutils.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 #include <afs/param.h>
11 #include <afs/stds.h>
12 #include <afs/afs_Admin.h>
13 #include <afs/vlserver.h>
14 #include "../adminutil/afs_AdminInternal.h"
15
16 extern int VLDB_CreateEntry(
17   afs_cell_handle_p cellHandle,
18   struct nvldbentry *entryp,
19   afs_status_p st
20 );
21
22 extern int VLDB_GetEntryByID(
23   afs_cell_handle_p cellHandle,
24   afs_int32 volid,
25   afs_int32 voltype,
26   struct nvldbentry *entryp,
27   afs_status_p st
28 );
29
30
31 extern int VLDB_GetEntryByName(
32   afs_cell_handle_p cellHandle,
33   const char *namep,
34   struct nvldbentry *entryp,
35   afs_status_p st
36 );
37
38 extern int VLDB_ReplaceEntry(
39   afs_cell_handle_p cellHandle,
40   afs_int32 volid,
41   afs_int32 voltype,
42   struct nvldbentry *entryp,
43   afs_int32 releasetype,
44   afs_status_p st
45 );
46
47 extern int VLDB_ListAttributes(
48   afs_cell_handle_p cellHandle,
49   VldbListByAttributes *attrp,
50   afs_int32 *entriesp,
51   nbulkentries *blkentriesp,
52   afs_status_p st
53 );
54
55 extern int VLDB_ListAttributesN2(
56   afs_cell_handle_p cellHandle,
57   VldbListByAttributes *attrp,
58   char *name,
59   afs_int32 thisindex,
60   afs_int32 *nentriesp,
61   nbulkentries *blkentriesp,
62   afs_int32 *nextindexp,
63   afs_status_p st
64 );
65
66 extern int VLDB_IsSameAddrs(
67   afs_cell_handle_p cellHandle,
68   afs_int32 serv1,
69   afs_int32 serv2,
70   int *equal,
71   afs_status_p st
72 );
73
74 extern int GetVolumeInfo(
75   afs_cell_handle_p cellHandle,
76   unsigned int volid,
77   struct nvldbentry *rentry,
78   afs_int32 *server,
79   afs_int32 *partition,
80   afs_int32 *voltype,
81   afs_status_p st
82 );
83
84 extern int ValidateVolumeName(
85   const char *volumeName,
86   afs_status_p st
87 );
88
89 extern int vsu_ExtractName(
90   char *rname,
91   char *name
92 );
93
94 extern int RemoveBadAddresses(
95    afs_int32 *totalp,
96    bulkaddrs *addrsp
97 );
98
99