Cleanup header files
- All now include maxscale/cdefs.h as the very first file. - MXS_[BEGIN|END]_DECLS added to all C-headers. Strictly speaking not necessary for private headers, but does not hurt either. - Include guards moved to the very top of the file. - #pragma once added.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#ifndef MYSQL_BINLOG_H
|
||||
#define MYSQL_BINLOG_H
|
||||
#pragma once
|
||||
#ifndef _MAXSCALE_MYSQL_BINLOG_H
|
||||
#define _MAXSCALE_MYSQL_BINLOG_H
|
||||
/*
|
||||
* Copyright (c) 2016 MariaDB Corporation Ab
|
||||
*
|
||||
@ -17,10 +18,13 @@
|
||||
* @file mysql_binlog.h - Extracting information from binary logs
|
||||
*/
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
||||
/** Maximum GTID string length */
|
||||
#define GTID_MAX_LEN 64
|
||||
|
||||
@ -91,4 +95,6 @@ uint64_t unpack_bit(uint8_t *ptr, uint8_t *null_mask, uint32_t col_count,
|
||||
|
||||
void format_temporal_value(char *str, size_t size, uint8_t type, struct tm *tm);
|
||||
|
||||
MXS_END_DECLS
|
||||
|
||||
#endif /* MYSQL_BINLOG_H */
|
||||
|
Reference in New Issue
Block a user