From ff7a59f46a6248417dd87fd72c26387c80fffef5 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 16 Dec 2015 15:46:18 +0100 Subject: [PATCH] bump max events the macros can handle We should probably dynamically alloc those then. Signed-off-by: Benjamin Tissoires --- src/libratbag-private.h | 2 +- tools/shared.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libratbag-private.h b/src/libratbag-private.h index 4bbc16ad..2eff7321 100644 --- a/src/libratbag-private.h +++ b/src/libratbag-private.h @@ -263,7 +263,7 @@ struct ratbag_macro_event { } event; }; -#define MAX_MACRO_EVENTS 64 +#define MAX_MACRO_EVENTS 256 struct ratbag_macro { char *name; char *group; diff --git a/tools/shared.h b/tools/shared.h index b87b8659..db6fc387 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -38,7 +38,7 @@ #include #include -#define MAX_MACRO_EVENTS 64 +#define MAX_MACRO_EVENTS 256 LIBRATBAG_ATTRIBUTE_PRINTF(1, 2) static inline void