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 _HASTABLE_H
#define _HASTABLE_H
#pragma once
#ifndef _MAXSCALE_HASTABLE_H
#define _MAXSCALE_HASTABLE_H
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
@ -28,10 +29,11 @@
*
* @endverbatim
*/
#include <maxscale/cdefs.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/spinlock.h>
EXTERN_C_BLOCK_BEGIN
MXS_BEGIN_DECLS
/**
* The entries within a hashtable.
@ -150,6 +152,6 @@ extern int hashtable_item_strcmp(const void* str1, const void* str2);
extern void* hashtable_item_strdup(const void *str);
extern int hashtable_item_strhash(const void *str);
EXTERN_C_BLOCK_END
MXS_END_DECLS
#endif