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 _BUFFER_H
#define _BUFFER_H
#pragma once
#ifndef _MAXSCALE_BUFFER_H
#define _MAXSCALE_BUFFER_H
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
@ -42,13 +43,15 @@
*
* @endverbatim
*/
#include <maxscale/cdefs.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/hint.h>
#include <maxscale/spinlock.h>
#include <stdint.h>
EXTERN_C_BLOCK_BEGIN
MXS_BEGIN_DECLS
/**
* Buffer properties - used to store properties related to the buffer
@ -214,7 +217,7 @@ void* gwbuf_get_buffer_object_data(GWBUF* buf, bufobj_id_t id)
#if defined(BUFFER_TRACE)
extern void dprintAllBuffers(void *pdcb);
#endif
EXTERN_C_BLOCK_END
MXS_END_DECLS
#endif