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