MySQL 9.0.0
Source Code Documentation
mysqlbinlog.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQLBINLOG_INCLUDED
25#define MYSQLBINLOG_INCLUDED
26
27#include <stdarg.h>
28#include <sys/types.h>
29
30#include "my_compiler.h"
31#include "my_inttypes.h"
32
33extern bool force_opt;
34extern bool short_form;
35extern ulong opt_server_id_mask;
37
38/*
39 error() is used in macro BINLOG_ERROR which is invoked in
40 rpl_gtid.h, hence the early forward declaration.
41*/
42void error(const char *format, ...) MY_ATTRIBUTE((format(printf, 1, 2)));
43void warning(const char *format, ...) MY_ATTRIBUTE((format(printf, 1, 2)));
44void error_or_warning(const char *format, va_list args, const char *msg)
45 MY_ATTRIBUTE((format(printf, 1, 0)));
46void sql_print_error(const char *format, ...)
47 MY_ATTRIBUTE((format(printf, 1, 2)));
48
49#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:1267
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,...)