a1d3903662a46af086c188e5fcf51ab2088013d4
[openafs.git] / src / fsint / afscbint.xg
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 /*
11  * afscbint.xg:
12  *      Definition of the AFS Cache Manager callback RPC interface.
13  */
14
15
16 #include "common.xg"            /*Common structures & definitions*/
17
18 package RXAFSCB_
19 prefix S
20 statindex 6
21
22 proc CallBack(
23   IN  AFSCBFids *Fids_Array,
24   AFSCBs *CallBacks_Array
25 ) multi = 204;
26
27 proc InitCallBackState(
28 ) = 205;
29
30 proc Probe(
31 ) multi = 206;
32
33 proc GetLock(
34   IN  afs_int32 index,
35   OUT AFSDBLock *lock
36 ) = 207;
37
38 proc GetCE(
39   IN  afs_int32 index,
40   OUT AFSDBCacheEntry *ce
41 ) = 208;
42
43 proc XStatsVersion(
44   OUT afs_int32 *versionNumberP
45 ) = 209;
46
47 proc GetXStats(
48   IN  afs_int32 clientVersionNumber,
49   afs_int32 collectionNumber,
50   OUT afs_int32 *srvVersionNumberP,
51   afs_int32 *timeP,
52   AFSCB_CollData *dataP
53 ) = 210;
54
55 /* Used in the AFS 3.5 beta release */
56 proc InitCallBackState2(
57   OUT struct interfaceAddr* addr
58 ) = 211;
59
60 proc WhoAreYou(
61   OUT struct interfaceAddr* addr
62 ) = 212;
63
64 proc InitCallBackState3(
65   IN afsUUID *serverUuid
66 ) = 213;
67
68 proc ProbeUuid(
69   IN afsUUID *clientUuid
70 ) multi = 214;
71
72 proc GetServerPrefs(
73   IN afs_int32 serverIndex,
74   OUT afs_int32 *srvrAddr,
75   OUT afs_int32 *srvrRank
76 ) = 215;
77
78 proc GetCellServDB(
79   IN afs_int32 cellIndex,
80   OUT string cellName<AFSNAMEMAX>,
81   OUT serverList *cellHosts
82 ) = 216;
83
84 proc GetLocalCell(
85   OUT string cellName<AFSNAMEMAX>
86 ) = 217;
87
88 proc GetCacheConfig(
89   IN afs_uint32 callerVersion,
90   OUT afs_uint32 *serverVersion,
91   OUT afs_uint32 *configCount,
92   OUT cacheConfig *config
93 ) = 218;
94
95 proc GetCE64(
96   IN  afs_int32 index,
97   OUT AFSDBCacheEntry64 *ce
98 ) = 65536;
99
100 proc GetCellByNum(
101   IN  afs_int32 cellNumber,
102   OUT string cellName<AFSNAMEMAX>,
103   OUT serverList *cellHosts
104 ) = 65537;
105
106 proc TellMeAboutYourself(
107   OUT struct interfaceAddr *addr,
108   OUT Capabilities *capabilities
109 ) = 65538;
110
111 /*
112 proc GetDE(
113   IN  afs_int32 index,
114   OUT afs_int32 addr,
115   OUT afs_int32 inode,
116   OUT afs_int32 flags,
117   OUT afs_int32 time,
118   OUT string fileName<AFSNAMEMAX>
119 ) = 65539;
120 */
121