MySQL 8.0.30
Source Code Documentation
mysqlbinlog.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2022, 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, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef MYSQLBINLOG_INCLUDED
24#define MYSQLBINLOG_INCLUDED
25
26#include <stdarg.h>
27#include <sys/types.h>
28
29#include "my_compiler.h"
30#include "my_inttypes.h"
31
32extern bool force_opt;
33extern bool short_form;
34extern ulong opt_server_id_mask;
36
37/*
38 error() is used in macro BINLOG_ERROR which is invoked in
39 rpl_gtid.h, hence the early forward declaration.
40*/
41void error(const char *format, ...) MY_ATTRIBUTE((format(printf, 1, 2)));
42void warning(const char *format, ...) MY_ATTRIBUTE((format(printf, 1, 2)));
43void error_or_warning(const char *format, va_list args, const char *msg)
44 MY_ATTRIBUTE((format(printf, 1, 0)));
45void sql_print_error(const char *format, ...)
46 MY_ATTRIBUTE((format(printf, 1, 2)));
47
48#endif // MYSQLBINLOG_INCLUDED
Header for compiler-dependent features.
Some integer typedefs for easier portability.
void warning(const char *format,...)
ulong opt_server_id_mask
Definition: mysqld.cc:1237
bool force_opt
bool short_form
void sql_print_error(const char *format,...)
void error_or_warning(const char *format, va_list args, const char *msg)
ulong opt_binlog_rows_event_max_size
void error(const char *format,...)