~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/**********************************************************************
2
File-based utilities
3
4
(c) 1995 Innobase Oy
5
6
Created 12/13/1995 Heikki Tuuri
7
***********************************************************************/
8
9
10
#ifndef fut0fut_h
11
#define fut0fut_h
12
13
#include "univ.i"
14
15
#include "fil0fil.h"
16
#include "mtr0mtr.h"
17
18
/************************************************************************
19
Gets a pointer to a file address and latches the page. */
20
UNIV_INLINE
21
byte*
22
fut_get_ptr(
23
/*========*/
24
				/* out: pointer to a byte in a frame; the file
25
				page in the frame is bufferfixed and latched */
26
	ulint		space,	/* in: space id */
27
	fil_addr_t	addr,	/* in: file address */
28
	ulint		rw_latch, /* in: RW_S_LATCH, RW_X_LATCH */
29
	mtr_t*		mtr);	/* in: mtr handle */
30
31
#ifndef UNIV_NONINL
32
#include "fut0fut.ic"
33
#endif
34
35
#endif
36