qam.src

来自「这是国外的resip协议栈」· SRC 代码 · 共 99 行

SRC
99
字号
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 1999-2004
 *	Sleepycat Software.  All rights reserved.
 *
 * $Id: qam.src,v 11.33 2004/06/17 17:35:22 bostic Exp $
 */

PREFIX	__qam
DBPRIVATE

INCLUDE #ifndef NO_SYSTEM_INCLUDES
INCLUDE #include <sys/types.h>
INCLUDE
INCLUDE #include <ctype.h>
INCLUDE #include <string.h>
INCLUDE #endif
INCLUDE
INCLUDE #include "db_int.h"
INCLUDE #include "dbinc/crypto.h"
INCLUDE #include "dbinc/db_page.h"
INCLUDE #include "dbinc/db_dispatch.h"
INCLUDE #include "dbinc/db_am.h"
INCLUDE #include "dbinc/log.h"
INCLUDE #include "dbinc/qam.h"
INCLUDE #include "dbinc/txn.h"
INCLUDE

/*
 * incfirst
 * Used when we increment first_recno.
 */
BEGIN incfirst		84
DB	fileid		int32_t		ld
ARG	recno		db_recno_t	lu
ARG	meta_pgno	db_pgno_t	lu
END

/*
 * mvptr
 * Used when we change one or both of cur_recno and first_recno.
 */
BEGIN mvptr		85
ARG	opcode		u_int32_t	lu
DB	fileid		int32_t		ld
ARG	old_first	db_recno_t	lu
ARG	new_first	db_recno_t	lu
ARG	old_cur		db_recno_t	lu
ARG	new_cur		db_recno_t	lu
POINTER	metalsn		DB_LSN *	lu
ARG	meta_pgno	db_pgno_t	lu
END


/*
 * del
 * Used when we delete a record.
 * recno is the record that is being deleted.
 */
BEGIN del		79
DB	fileid		int32_t		ld
POINTER	lsn		DB_LSN *	lu
ARG	pgno		db_pgno_t	lu
ARG	indx		u_int32_t	lu
ARG	recno		db_recno_t	lu
END

/*
 * add
 * Used when we put a record on a page.
 * recno is the record being added.
 * data is the record itself.
 */
BEGIN add		80
DB	fileid		int32_t		ld
POINTER	lsn		DB_LSN *	lu
ARG	pgno		db_pgno_t	lu
ARG	indx		u_int32_t	lu
ARG	recno		db_recno_t	lu
DBT	data		DBT		s
ARG	vflag		u_int32_t	lu
DBT	olddata		DBT		s
END

/*
 * delext
 * Used when we delete a record in extent based queue.
 * recno is the record that is being deleted.
 */
BEGIN delext		83
DB	fileid		int32_t		ld
POINTER	lsn		DB_LSN *	lu
ARG	pgno		db_pgno_t	lu
ARG	indx		u_int32_t	lu
ARG	recno		db_recno_t	lu
DBT	data		DBT		s
END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?