InnoDB Plugin  1.0
buf0checksum.h
1 /*****************************************************************************
2 
3 Copyright (c) 1995, 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 buf0checksum_h
27 #define buf0checksum_h
28 
29 #include "univ.i"
30 
31 #ifndef UNIV_INNOCHECKSUM
32 
33 #include "buf0types.h"
34 
35 #endif /* !UNIV_INNOCHECKSUM */
36 
37 /********************************************************************/
42 UNIV_INTERN
43 ib_uint32_t
44 buf_calc_page_crc32(
45 /*================*/
46  const byte* page);
48 /********************************************************************/
53 UNIV_INTERN
54 ulint
55 buf_calc_page_new_checksum(
56 /*=======================*/
57  const byte* page);
59 /********************************************************************/
67 UNIV_INTERN
68 ulint
69 buf_calc_page_old_checksum(
70 /*=======================*/
71  const byte* page);
73 #ifndef UNIV_INNOCHECKSUM
74 
75 /********************************************************************/
78 UNIV_INTERN
79 const char*
80 buf_checksum_algorithm_name(
81 /*========================*/
84 extern ulong srv_checksum_algorithm;
85 
86 #endif /* !UNIV_INNOCHECKSUM */
87 
88 #endif /* buf0checksum_h */