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
26typedef struct UserShortcut
27{
28 char * action;
29 char * primary;
30 char * secondary;
32
36typedef struct UserShortcuts
37{
40 int num_shortcuts;
42
43void
44user_shortcut_free (UserShortcut * shortcut);
45
51
59const char *
61 UserShortcuts * self,
62 bool primary,
63 const char * action,
64 const char * default_shortcut);
65
66void
67user_shortcuts_free (UserShortcuts * self);
68
73#endif
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.
UserShortcuts * user_shortcuts_new(void)
Reads the file and fills up the object.
User shortcuts read from yaml.
UserShortcut * shortcuts[900]
Valid descriptors.
YAML utils.