Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / budb / budb_client.h
blobce5e2340d1690a0ac9f2389063a30bf3f1bc4fdd
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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 */
10 #ifndef __BUDB_CLIENT__
11 #define __BUDB_CLIENT__
13 #include <ubik.h>
14 #ifndef BUDB_MAJORVERSION /* get the installed RPC stuff */
15 #include <sys/types.h>
16 #include <rx/xdr.h>
17 #include <afs/budb.h>
18 #endif
20 #include <afs/budb_errs.h>
22 /* for ubik_Call_SingleServer */
24 #define UF_SINGLESERVER 1 /* begin single server operation */
25 #define UF_END_SINGLESERVER 2 /* terminate single server operation */
28 /* handle for the ubik database connection */
30 struct udbHandleS {
31 afs_int32 uh_scIndex; /* what type of sec. object */
32 struct rx_securityClass *uh_secobj; /* security object */
33 struct rx_connection *uh_serverConn[MAXSERVERS]; /* server connections */
34 struct ubik_client *uh_client; /* ubik client handle */
35 afs_uint32 uh_instanceId; /* instance of client */
38 typedef struct udbHandleS udbHandleT;
39 typedef udbHandleT *udbHandleP;
41 /* suggested text block management structure */
43 struct udbClientTextS {
44 char *textName; /* for info. only */
45 afs_int32 textType; /* used as key for access */
46 afs_uint32 textVersion; /* version # for cache mgmt */
47 afs_uint32 lockHandle; /* for atomicity */
48 afs_int32 textSize; /* no. of bytes */
49 FILE *textStream; /* file stream or NULL */
52 typedef struct udbClientTextS udbClientTextT;
53 typedef udbClientTextT *udbClientTextP;
55 #endif