1/* Copyright (c) 2007, 2010, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16#ifndef RPL_RECORD_OLD_H
17#define RPL_RECORD_OLD_H
18
19#include "log_event.h" /* Log_event_type */
20
21#ifndef MYSQL_CLIENT
22size_t pack_row_old(TABLE *table, MY_BITMAP const* cols,
23 uchar *row_data, const uchar *record);
24
25#ifdef HAVE_REPLICATION
26int unpack_row_old(rpl_group_info *rgi,
27 TABLE *table, uint const colcnt, uchar *record,
28 uchar const *row, uchar const *row_buffer_end,
29 MY_BITMAP const *cols,
30 uchar const **row_end, ulong *master_reclength,
31 MY_BITMAP* const rw_set,
32 Log_event_type const event_type);
33#endif
34#endif
35#endif
36