aboutsummaryrefslogtreecommitdiffstats
path: root/include/lv2/event/event-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lv2/event/event-helpers.h')
-rw-r--r--include/lv2/event/event-helpers.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/lv2/event/event-helpers.h b/include/lv2/event/event-helpers.h
index 0bf352f..de386ca 100644
--- a/include/lv2/event/event-helpers.h
+++ b/include/lv2/event/event-helpers.h
@@ -1,16 +1,16 @@
// Copyright 2008-2015 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-#ifndef LV2_EVENT_HELPERS_H
-#define LV2_EVENT_HELPERS_H
+#ifndef LV2_EVENT_EVENT_HELPERS_H
+#define LV2_EVENT_EVENT_HELPERS_H
/**
@file event-helpers.h Helper functions for the LV2 Event extension
<http://lv2plug.in/ns/ext/event>.
*/
-#include "lv2/core/attributes.h"
-#include "lv2/event/event.h"
+#include <lv2/core/attributes.h>
+#include <lv2/event/event.h>
#include <stdbool.h>
#include <stdint.h>
@@ -107,7 +107,8 @@ lv2_event_increment(LV2_Event_Iterator* iter)
return false;
}
- LV2_Event* const ev = (LV2_Event*)(iter->buf->data + iter->offset);
+ const LV2_Event* const ev =
+ (const LV2_Event*)(iter->buf->data + iter->offset);
iter->offset +=
lv2_event_pad_size((uint16_t)((uint16_t)sizeof(LV2_Event) + ev->size));
@@ -239,4 +240,4 @@ LV2_RESTORE_WARNINGS
} /* extern "C" */
#endif
-#endif /* LV2_EVENT_HELPERS_H */
+#endif // LV2_EVENT_EVENT_HELPERS_H