1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #ifndef _DB_INDEX_ENTRY_C_H_RPCGEN
7 #define	_DB_INDEX_ENTRY_C_H_RPCGEN
8 
9 #include <rpc/rpc.h>
10 #pragma ident	"%Z%%M%	%I%	%E% SMI"
11 #ifndef _DB_INDEX_ENTRY_H
12 #define _DB_INDEX_ENTRY_H
13 
14  /* db_index_entry is an entry in the hashtable.  db_index_entries can be
15     linked in one of two ways:
16     * via the 'next' pointer and form the hash bucket
17     * via the 'nextresult' pointer and form a chain of results.
18     Each entry contains the key, the hash value of key, and location
19     information  'entryp'
20     entryp is location information.
21     It might be pointer to an in core entry, or an indirect pointer
22     identifying the location of an entry somewhere in memory (e.g.
23     if there was a table where all complete entries are stored) --- this
24     is desirable, for example, for XDR operations on a multi-indexed table;
25     or, if used in conjunction with NetISAM, it may be the record number. */
26 /* *** notes */
27 /* remember to set next_result to null first if using XDR. */
28 #include "db_item_c.h"
29 #include "db_table_c.h"   /* contains definition of entryp */
30 typedef void *nullptr;
31 
32 struct db_index_entry {
33 	u_long hashval;
34 	item *key;
35 	entryp location;
36 	struct db_index_entry *next;
37 	nullptr next_result;
38 };
39 typedef struct db_index_entry db_index_entry;
40 
41 typedef db_index_entry *db_index_entry_p;
42 #endif /* _DB_INDEX_ENTRY_H */
43 
44 /* the xdr functions */
45 extern bool_t xdr_db_index_entry();
46 extern bool_t xdr_db_index_entry_p();
47 
48 #endif /* !_DB_INDEX_ENTRY_C_H_RPCGEN */
49