-
Committer:
Laurynas Biveinis
-
Date:
2013-02-20 10:20:00 UTC
-
mfrom:
(391.79.2 BT-28340-cpp-2.0)
-
Revision ID:
laurynas.biveinis@percona.com-20130220102000-gpsshsrtcnou17ty
Merge C++ build support from 2.0
(https://blueprints.launchpad.net/percona-xtrabackup/+spec/xtrabackup-cpp).
For 2.1, InnoDB-facing parts are defined as xtrabackup.cc,
innodb_int.cc, compact.cc, fil_cur.cc, write_filt.cc, renamed from
.c. The rest is built with a C compiler.
Since innodb_int.h becomes a C++-only header, do not include it in
common.h, where it's not really required. Replace ulints (an InnoDB
type) with ulongs (a MySQL type) there.
In preparation for MySQL 5.6 with C++ InnoDB headers, move all the
InnoDB header includes to innodb_int.h, so that InnoDB being C or C++
has to be handled in one location only.
Move mysql_tmpdir_list declaration and definition from innodb_int.h/.cc
to ds_tmpfile.h/.c because it's of a C type, declared in MySQL plugin
interface, instead of a potentially C++ InnoDB type.
Likewise move xb_stream_fmt_t definition from xtrabackup.h to
xbstream.h.
Fix TABLE definition and move it from innodb_int.cc to innodb_int.h.