4#ifndef __UNDO_MIDI_MAPPING_ACTION_H__
5#define __UNDO_MIDI_MAPPING_ACTION_H__
19enum class MidiMappingActionType
21 MIDI_MAPPING_ACTION_BIND,
22 MIDI_MAPPING_ACTION_UNBIND,
23 MIDI_MAPPING_ACTION_ENABLE,
24 MIDI_MAPPING_ACTION_DISABLE,
38 MidiMappingActionType
type;
bool midi_mapping_action_perform_unbind(int idx, GError **error)
Wrapper of midi_mapping_action_new_unbind().
bool midi_mapping_action_perform_enable(int idx, bool enable, GError **error)
Wrapper of midi_mapping_action_new_enable().
bool midi_mapping_action_perform_bind(midi_byte_t *buf, ExtPort *device_port, Port *dest_port, GError **error)
Wrapper of midi_mapping_action_new_bind().
WARN_UNUSED_RESULT UndoableAction * midi_mapping_action_new_bind(midi_byte_t *buf, ExtPort *device_port, Port *dest_port, GError **error)
Creates a new action.
WARN_UNUSED_RESULT UndoableAction * midi_mapping_action_new_enable(int idx, bool enable, GError **error)
Creates a new action.
WARN_UNUSED_RESULT UndoableAction * midi_mapping_action_new_unbind(int idx, GError **error)
Creates a new action.
uint8_t midi_byte_t
MIDI byte.
Mapping MIDI CC to controls.
int idx
Index of mapping, if enable/disable.
MidiMappingActionType type
Action type.
Struct used to identify Ports in the project.
Must ONLY be created via port_new()
Base struct to be inherited by implementing undoable actions.