commit 26c8310337845493eb16b08c5ed6af1dea5ecac5
parent 45d12b6722023d4ddd343affc731501344e0e10d
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Mon, 20 Sep 2021 21:19:25 +0200
Move id to its own file
Diffstat:
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -1,10 +1,10 @@
#pragma once
#include <stdbool.h>
-#include <stdint.h>
#include <stddef.h>
#include "fixedpoint.h"
+#include "id.h"
#ifdef __cplusplus
extern "C" {
@@ -25,10 +25,6 @@ enum {
};
typedef int32_t clap_event_type;
-typedef uint32_t clap_id;
-
-static const clap_id CLAP_INVALID_ID = UINT32_MAX;
-
/**
* Note on, off, end and choke events.
* In the case of note choke or end events:
diff --git a/include/clap/id.h b/include/clap/id.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include <stdint.h>
+
+typedef uint32_t clap_id;
+
+static const clap_id CLAP_INVALID_ID = UINT32_MAX;
+\ No newline at end of file