forked from drath/libratbag
Add an additional macro API to commit the macro
Not very glorious Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -1343,6 +1343,13 @@ ratbag_button_set_macro_event(struct ratbag_button *button,
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT int
|
||||
ratbag_button_write_macro(struct ratbag_button *button)
|
||||
{
|
||||
return button->profile->device->driver->write_button(button, &button->action);
|
||||
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT enum ratbag_macro_event_type
|
||||
ratbag_button_get_macro_event_type(struct ratbag_button *button, unsigned int index)
|
||||
{
|
||||
|
||||
@@ -1352,6 +1352,9 @@ ratbag_button_get_macro_event_timeout(struct ratbag_button *button, unsigned int
|
||||
int
|
||||
ratbag_button_set_macro(struct ratbag_button *button, const char *name);
|
||||
|
||||
int
|
||||
ratbag_button_write_macro(struct ratbag_button *button);
|
||||
|
||||
/**
|
||||
* @ingroup button
|
||||
*
|
||||
|
||||
@@ -23,6 +23,7 @@ global:
|
||||
ratbag_button_set_special;
|
||||
ratbag_button_set_user_data;
|
||||
ratbag_button_unref;
|
||||
ratbag_button_write_macro;
|
||||
ratbag_device_get_name;
|
||||
ratbag_device_get_num_buttons;
|
||||
ratbag_device_get_num_profiles;
|
||||
|
||||
Reference in New Issue
Block a user