mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / sql / rpl_record.h
blob189f389411f01cb3a0581f6a78419ffb25950d27
1 /*
2 Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; version 2 of the License.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef RPL_RECORD_H
19 #define RPL_RECORD_H
21 #include <rpl_reporting.h>
23 #if !defined(MYSQL_CLIENT)
24 size_t pack_row(TABLE* table, MY_BITMAP const* cols,
25 uchar *row_data, const uchar *data);
26 #endif
28 #if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
29 int unpack_row(Relay_log_info const *rli,
30 TABLE *table, uint const colcnt,
31 uchar const *const row_data, MY_BITMAP const *cols,
32 uchar const **const row_end, ulong *const master_reclength);
34 // Fill table's record[0] with default values.
35 int prepare_record(TABLE *const table, const uint skip, const bool check);
36 #endif
38 #endif