mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / innobase / include / fut0fut.h
blobb9546b4e1a0a4b38885f7ccab5f9b6c2b8585d3c
1 /**********************************************************************
2 File-based utilities
4 (c) 1995 Innobase Oy
6 Created 12/13/1995 Heikki Tuuri
7 ***********************************************************************/
10 #ifndef fut0fut_h
11 #define fut0fut_h
13 #include "univ.i"
15 #include "fil0fil.h"
16 #include "mtr0mtr.h"
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 */
31 #ifndef UNIV_NONINL
32 #include "fut0fut.ic"
33 #endif
35 #endif