1 /***************************************************************************** 2 3 Copyright (c) 1995, 2009, Oracle and/or its affiliates. All Rights Reserved. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License, version 2.0, 7 as published by the Free Software Foundation. 8 9 This program is also distributed with certain software (including 10 but not limited to OpenSSL) that is licensed under separate terms, 11 as designated in a particular file or component or in included license 12 documentation. The authors of MySQL hereby grant you an additional 13 permission to link the program and your derivative works with the 14 separately licensed software that they have included with MySQL. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License, version 2.0, for more details. 20 21 You should have received a copy of the GNU General Public License along with 22 this program; if not, write to the Free Software Foundation, Inc., 23 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA 24 25 *****************************************************************************/ 26 27 /******************************************************************//** 28 @file include/fut0fut.h 29 File-based utilities 30 31 Created 12/13/1995 Heikki Tuuri 32 ***********************************************************************/ 33 34 35 #ifndef fut0fut_h 36 #define fut0fut_h 37 38 #include "univ.i" 39 40 #include "fil0fil.h" 41 #include "mtr0mtr.h" 42 43 /********************************************************************//** 44 Gets a pointer to a file address and latches the page. 45 @return pointer to a byte in a frame; the file page in the frame is 46 bufferfixed and latched */ 47 UNIV_INLINE 48 byte* 49 fut_get_ptr( 50 /*========*/ 51 ulint space, /*!< in: space id */ 52 ulint zip_size,/*!< in: compressed page size in bytes 53 or 0 for uncompressed pages */ 54 fil_addr_t addr, /*!< in: file address */ 55 ulint rw_latch, /*!< in: RW_S_LATCH, RW_X_LATCH */ 56 mtr_t* mtr); /*!< in: mtr handle */ 57 58 #ifndef UNIV_NONINL 59 #include "fut0fut.ic" 60 #endif 61 62 #endif 63 64