xref: /titanic_41/usr/src/cmd/sendmail/db/include/db_join.h (revision 6185db853e024a486ff8837e6784dd290d866112)
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 1998
5  *	Sleepycat Software.  All rights reserved.
6  *
7  *	@(#)db_join.h	10.2 (Sleepycat) 10/4/98
8  */
9 
10 #pragma ident	"%Z%%M%	%I%	%E% SMI"
11 
12 #ifndef _DB_JOIN_H
13 #define _DB_JOIN_H
14 /*
15  * Joins use a join cursor that is similar to a regular DB cursor except
16  * that it only supports c_get and c_close functionality.  Also, it does
17  * not support the full range of flags for get.
18  */
19 typedef struct __join_cursor {
20 	u_int32_t j_init;		/* Set when cursor is initialized. */
21 	DBC 	**j_curslist;		/* Array of cursors in the join. */
22 	DB	 *j_primary;		/* Primary dbp. */
23 	DBT	  j_key;		/* Used to do lookups. */
24 } JOIN_CURSOR;
25 #endif
26