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:
Johan Wikman
2016-10-14 11:51:44 +03:00
parent dc1f599b49
commit 1a978be6b6
86 changed files with 647 additions and 206 deletions

View File

@ -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 */