summaryrefslogtreecommitdiff
path: root/extra/mariabackup/xb0xb.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariabackup/xb0xb.h')
-rw-r--r--extra/mariabackup/xb0xb.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/extra/mariabackup/xb0xb.h b/extra/mariabackup/xb0xb.h
new file mode 100644
index 00000000000..659ab8ea5d0
--- /dev/null
+++ b/extra/mariabackup/xb0xb.h
@@ -0,0 +1,78 @@
+/******************************************************
+Copyright (c) 2012 Percona LLC and/or its affiliates.
+
+Declarations of XtraBackup functions called by InnoDB code.
+
+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 Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+*******************************************************/
+
+#ifndef xb0xb_h
+#define xb0xb_h
+
+
+extern void os_io_init_simple(void);
+extern os_file_t files[1000];
+extern const char *innodb_checksum_algorithm_names[];
+extern TYPELIB innodb_checksum_algorithm_typelib;
+extern dberr_t open_or_create_data_files(
+ ibool* create_new_db,
+#ifdef UNIV_LOG_ARCHIVE
+ lsn_t* min_arch_log_no,
+ lsn_t* max_arch_log_no,
+#endif
+ lsn_t* min_flushed_lsn,
+ lsn_t* max_flushed_lsn,
+ ulint* sum_of_new_sizes)
+ ;
+int
+fil_file_readdir_next_file(
+/*=======================*/
+dberr_t* err, /*!< out: this is set to DB_ERROR if an error
+ was encountered, otherwise not changed */
+ const char* dirname,/*!< in: directory name or path */
+ os_file_dir_t dir, /*!< in: directory stream */
+ os_file_stat_t* info) /*!< in/out: buffer where the
+ info is returned */;
+buf_block_t* btr_node_ptr_get_child(
+ const rec_t* node_ptr,/*!< in: node pointer */
+ dict_index_t* index, /*!< in: index */
+ const ulint* offsets,/*!< in: array returned by rec_get_offsets() */
+ mtr_t* mtr) /*!< in: mtr */;
+
+buf_block_t*
+btr_root_block_get(
+/*===============*/
+const dict_index_t* index, /*!< in: index tree */
+ulint mode, /*!< in: either RW_S_LATCH
+ or RW_X_LATCH */
+ mtr_t* mtr) /*!< in: mtr */;
+fil_space_t*
+fil_space_get_by_name(const char *);
+ibool
+recv_check_cp_is_consistent(const byte* buf);
+void
+innodb_log_checksum_func_update(
+/*============================*/
+ulint algorithm) /*!< in: algorithm */;
+dberr_t recv_find_max_checkpoint(log_group_t** max_group, ulint* max_field);
+dberr_t
+srv_undo_tablespaces_init(
+/*======================*/
+ibool create_new_db,
+ibool backup_mode,
+const ulint n_conf_tablespaces,
+ulint* n_opened);
+
+#endif