1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1999,2008 Oracle.  All rights reserved.
5 *
6 * $Id: qam.src,v 12.9 2008/01/08 20:58:47 bostic Exp $
7 */
8
9DBPRIVATE
10PREFIX	__qam
11
12INCLUDE #include "db_int.h"
13INCLUDE #include "dbinc/crypto.h"
14INCLUDE #include "dbinc/db_page.h"
15INCLUDE #include "dbinc/db_dispatch.h"
16INCLUDE #include "dbinc/db_am.h"
17INCLUDE #include "dbinc/log.h"
18INCLUDE #include "dbinc/qam.h"
19INCLUDE #include "dbinc/txn.h"
20INCLUDE
21
22/*
23 * incfirst
24 * Used when we increment first_recno.
25 */
26BEGIN incfirst		42	84
27DB	fileid		int32_t		ld
28ARG	recno		db_recno_t	lu
29ARG	meta_pgno	db_pgno_t	lu
30END
31
32/*
33 * mvptr
34 * Used when we change one or both of cur_recno and first_recno.
35 */
36BEGIN mvptr		42	85
37ARG	opcode		u_int32_t	lu
38DB	fileid		int32_t		ld
39ARG	old_first	db_recno_t	lu
40ARG	new_first	db_recno_t	lu
41ARG	old_cur		db_recno_t	lu
42ARG	new_cur		db_recno_t	lu
43POINTER	metalsn		DB_LSN *	lu
44ARG	meta_pgno	db_pgno_t	lu
45END
46
47
48/*
49 * del
50 * Used when we delete a record.
51 * recno is the record that is being deleted.
52 */
53BEGIN del		42	79
54DB	fileid		int32_t		ld
55POINTER	lsn		DB_LSN *	lu
56ARG	pgno		db_pgno_t	lu
57ARG	indx		u_int32_t	lu
58ARG	recno		db_recno_t	lu
59END
60
61/*
62 * add
63 * Used when we put a record on a page.
64 * recno is the record being added.
65 * data is the record itself.
66 */
67BEGIN add		42	80
68DB	fileid		int32_t		ld
69POINTER	lsn		DB_LSN *	lu
70ARG	pgno		db_pgno_t	lu
71ARG	indx		u_int32_t	lu
72ARG	recno		db_recno_t	lu
73DBT	data		DBT		s
74ARG	vflag		u_int32_t	lu
75DBT	olddata		DBT		s
76END
77
78/*
79 * delext
80 * Used when we delete a record in extent based queue.
81 * recno is the record that is being deleted.
82 */
83BEGIN delext		42	83
84DB	fileid		int32_t		ld
85POINTER	lsn		DB_LSN *	lu
86ARG	pgno		db_pgno_t	lu
87ARG	indx		u_int32_t	lu
88ARG	recno		db_recno_t	lu
89DBT	data		DBT		s
90END
91