InnoDB Plugin  1.0
buf0buddy.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2006, 2011, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #ifndef buf0buddy_h
27 #define buf0buddy_h
28 
29 #ifdef UNIV_MATERIALIZE
30 # undef UNIV_INLINE
31 # define UNIV_INLINE
32 #endif
33 
34 #include "univ.i"
35 #include "buf0types.h"
36 
37 /**********************************************************************/
43 UNIV_INLINE
44 byte*
46 /*============*/
47  buf_pool_t* buf_pool,
49  ulint size,
52  ibool* lru)
57  __attribute__((malloc, nonnull));
58 
59 /**********************************************************************/
61 UNIV_INLINE
62 void
64 /*===========*/
65  buf_pool_t* buf_pool,
67  void* buf,
69  ulint size)
71  __attribute__((nonnull));
72 
73 #ifndef UNIV_NONINL
74 # include "buf0buddy.ic"
75 #endif
76 
77 #endif /* buf0buddy_h */