Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability.
This commit is contained in:
@@ -41,29 +41,29 @@
|
||||
keystroke_type_t type;
|
||||
uint8_t scancode;
|
||||
uint8_t modifierMask;
|
||||
} __attribute__ ((packed)) key;
|
||||
} ATTR_PACKED key;
|
||||
struct {
|
||||
macro_sub_action_t action;
|
||||
uint8_t mouseButtonsMask;
|
||||
} __attribute__ ((packed)) mouseButton;
|
||||
} ATTR_PACKED mouseButton;
|
||||
struct {
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
} __attribute__ ((packed)) moveMouse;
|
||||
} ATTR_PACKED moveMouse;
|
||||
struct {
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
} __attribute__ ((packed)) scrollMouse;
|
||||
} ATTR_PACKED scrollMouse;
|
||||
struct {
|
||||
int16_t delay;
|
||||
} __attribute__ ((packed)) delay;
|
||||
} ATTR_PACKED delay;
|
||||
struct {
|
||||
const char *text;
|
||||
uint16_t textLen;
|
||||
} __attribute__ ((packed)) text;
|
||||
} ATTR_PACKED text;
|
||||
};
|
||||
macro_action_type_t type;
|
||||
} __attribute__ ((packed)) macro_action_t;
|
||||
} ATTR_PACKED macro_action_t;
|
||||
|
||||
// Variables:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user