/***************************************************************************** Copyright (C) 2013, 2017 MariaDB Corporation. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *****************************************************************************/ #ifndef fil0pagecompress_h #define fil0pagecompress_h #include "fsp0fsp.h" #include "fsp0pagecompress.h" /******************************************************************//** @file include/fil0pagecompress.h Helper functions for extracting/storing page compression and atomic writes information to table space. Created 11/12/2013 Jan Lindström jan.lindstrom@skysql.com ***********************************************************************/ /*******************************************************************//** Find out wheather the page is index page or not @return true if page type index page, false if not */ UNIV_INLINE ibool fil_page_is_index_page( /*===================*/ byte *buf); /*!< in: page */ /****************************************************************//** Get the name of the compression algorithm used for page compression. @return compression algorithm name or "UNKNOWN" if not known*/ UNIV_INLINE const char* fil_get_compression_alg_name( /*=========================*/ ulint comp_alg); /*!