aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/atom
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-26 17:44:23 +0100
committerDavid Robillard <d@drobilla.net>2020-12-26 17:55:23 +0100
commit8d2251749da9e0ae4254502edfc8917236a9b8c0 (patch)
tree233dc28780ed351c255a0f66ad206cca269d44b4 /lv2/atom
parentc2816ab42b458c9c5202197b3df665340f57dddd (diff)
downloadlv2-8d2251749da9e0ae4254502edfc8917236a9b8c0.tar.xz
Make include guards surround all header contents
For consistency, and because clang-tidy can't figure out if a define is an include guard unless it ends the file.
Diffstat (limited to 'lv2/atom')
-rw-r--r--lv2/atom/atom.h14
-rw-r--r--lv2/atom/forge.h16
-rw-r--r--lv2/atom/util.h14
3 files changed, 22 insertions, 22 deletions
diff --git a/lv2/atom/atom.h b/lv2/atom/atom.h
index 2f62947..a82c977 100644
--- a/lv2/atom/atom.h
+++ b/lv2/atom/atom.h
@@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef LV2_ATOM_H
+#define LV2_ATOM_H
+
/**
@defgroup atom Atom
@ingroup lv2
@@ -25,9 +28,6 @@
@{
*/
-#ifndef LV2_ATOM_H
-#define LV2_ATOM_H
-
#include <stdint.h>
// clang-format off
@@ -250,12 +250,12 @@ typedef struct {
LV2_Atom_Sequence_Body body; /**< Body. */
} LV2_Atom_Sequence;
-/**
- @}
-*/
-
#ifdef __cplusplus
} /* extern "C" */
#endif
+/**
+ @}
+*/
+
#endif /* LV2_ATOM_H */
diff --git a/lv2/atom/forge.h b/lv2/atom/forge.h
index b87d12f..0920e0a 100644
--- a/lv2/atom/forge.h
+++ b/lv2/atom/forge.h
@@ -39,6 +39,9 @@
This header is non-normative, it is provided for convenience.
*/
+#ifndef LV2_ATOM_FORGE_H
+#define LV2_ATOM_FORGE_H
+
/**
@defgroup forge Forge
@ingroup atom
@@ -48,9 +51,6 @@
@{
*/
-#ifndef LV2_ATOM_FORGE_H
-#define LV2_ATOM_FORGE_H
-
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/attributes.h"
@@ -687,15 +687,15 @@ lv2_atom_forge_beat_time(LV2_Atom_Forge* forge, double beats)
return lv2_atom_forge_write(forge, &beats, sizeof(beats));
}
-/**
- @}
- @}
-*/
-
LV2_RESTORE_WARNINGS
#ifdef __cplusplus
} /* extern "C" */
#endif
+/**
+ @}
+ @}
+*/
+
#endif /* LV2_ATOM_FORGE_H */
diff --git a/lv2/atom/util.h b/lv2/atom/util.h
index bfad422..98c9edb 100644
--- a/lv2/atom/util.h
+++ b/lv2/atom/util.h
@@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef LV2_ATOM_UTIL_H
+#define LV2_ATOM_UTIL_H
+
/**
@file util.h Helper functions for the LV2 Atom extension.
@@ -31,9 +34,6 @@
@{
*/
-#ifndef LV2_ATOM_UTIL_H
-#define LV2_ATOM_UTIL_H
-
#include "lv2/atom/atom.h"
#include <stdarg.h>
@@ -512,13 +512,13 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...)
return matches;
}
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
/**
@}
@}
*/
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
#endif /* LV2_ATOM_UTIL_H */