Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
user_shortcuts.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3
*
4
* SPDX-License-Identifier: LicenseRef-ZrythmLicense
5
*/
6
13
#ifndef __SETTINGS_USER_SHORTCUTS_H__
14
#define __SETTINGS_USER_SHORTCUTS_H__
15
16
#include "
utils/yaml.h
"
17
24
#define USER_SHORTCUTS_SCHEMA_VERSION 2
25
26
typedef
struct
UserShortcut
27
{
28
char
* action;
29
char
* primary;
30
char
* secondary;
31
}
UserShortcut
;
32
36
typedef
struct
UserShortcuts
37
{
39
UserShortcut
*
shortcuts
[900];
40
int
num_shortcuts;
41
}
UserShortcuts
;
42
43
void
44
user_shortcut_free (
UserShortcut
* shortcut);
45
49
UserShortcuts
*
50
user_shortcuts_new
(
void
);
51
59
const
char
*
60
user_shortcuts_get
(
61
UserShortcuts
* self,
62
bool
primary,
63
const
char
* action,
64
const
char
* default_shortcut);
65
66
void
67
user_shortcuts_free (
UserShortcuts
* self);
68
73
#endif
user_shortcuts_get
const char * user_shortcuts_get(UserShortcuts *self, bool primary, const char *action, const char *default_shortcut)
Returns a shortcut for the given action, or default_shortcut if not found.
user_shortcuts_new
UserShortcuts * user_shortcuts_new(void)
Reads the file and fills up the object.
UserShortcut
Definition
user_shortcuts.h:27
UserShortcuts
User shortcuts read from yaml.
Definition
user_shortcuts.h:37
UserShortcuts::shortcuts
UserShortcut * shortcuts[900]
Valid descriptors.
Definition
user_shortcuts.h:39
yaml.h
YAML utils.
settings
user_shortcuts.h
Generated by
1.11.0