marked _internal_open_<device> functions inline

This commit is contained in:
Sara 2023-11-11 12:57:01 +01:00
parent 1d2e5d57e5
commit b7a370c820

View file

@ -4,7 +4,7 @@
static List _devices;
static
static inline
void _internal_open_keyboard() {
InputDevice* keyboard = malloc(sizeof(InputDevice));
*keyboard = (InputDevice){
@ -19,7 +19,7 @@ void _internal_open_keyboard() {
LOG_INFO("registered keyboard %d", keyboard->id);
}
static
static inline
void _internal_open_controller(size_t id) {
InputDevice* device = malloc(sizeof(InputDevice));
*device = (InputDevice) {