Zrythm
a highly automated and intuitive digital audio workstation
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
e
f
g
i
m
p
r
t
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
a
b
c
e
f
g
i
k
m
n
p
r
s
t
u
z
Enumerator
a
u
z
Macros
_
a
b
c
d
e
f
h
i
k
m
p
r
s
t
u
v
z
▼
Zrythm
►
Documentation
►
Cyaml Schemas
GTK Tips
►
The Processing Cycle
repo-management
►
Release Checklist
►
Weblate Translations
Building on Windows
Building on Windows (MSVC)
CONTRIBUTING
HACKING
Git Packaging Hooks
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
actions
►
doc
►
dsp
►
gui
►
io
►
plugins
►
project
►
settings
►
src
▼
utils
►
algorithms.h
arrays.h
►
audio.h
►
backtrace.h
►
cairo.h
chromaprint.h
►
color.h
►
compression.h
cpu_windows.h
►
curl.h
►
datetime.h
debug.h
dialogs.h
►
dictionary.h
dir.h
►
dsp.h
►
env.h
►
error.h
►
file.h
►
flags.h
►
general.h
►
gtk.h
hash.h
►
io.h
log.h
►
math.h
►
mem.h
►
midi.h
mpmc_queue.h
►
object_pool.h
objects.h
pango.h
pcg_rand.h
►
progress_info.h
►
resampler.h
►
resources.h
►
sort.h
►
stack.h
stoat.h
►
string.h
►
symap.h
►
system.h
terminal.h
►
types.h
►
ui.h
►
vamp.h
windows.h
windows_errors.h
yaml.h
dir.h
gtk_wrapper.h
project.h
libpanel_wrapper.h
Wrapper.h
►
zrythm.h
►
zrythm_app.h
INSTALL.rst
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
dictionary.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3
*
4
* SPDX-License-Identifier: LicenseRef-ZrythmLicense
5
*/
6
13
#ifndef __UTILS_DICTIONARY_H__
14
#define __UTILS_DICTIONARY_H__
15
16
#include <cstdlib>
17
18
#include "gtk_wrapper.h"
19
26
#define DICTIONARY_PUSH(s, element) dictionary_push (s, (void *) element)
27
28
typedef
struct
DictionaryEntry
29
{
30
char
* key;
31
void
* val;
32
}
DictionaryEntry
;
28
typedef
struct
DictionaryEntry
{
…
};
33
34
typedef
struct
Dictionary
35
{
37
int
len
;
39
size_t
size
;
40
DictionaryEntry
* entry;
41
}
Dictionary
;
34
typedef
struct
Dictionary
{
…
};
42
43
Dictionary
*
44
dictionary_new (
void
);
45
46
#define dictionary_find_simple(dict, key, type) \
47
((type *) dictionary_find (dict, key, NULL))
48
49
void
*
50
dictionary_find (
Dictionary
* dict,
const
char
* key,
void
* def);
51
52
#define dictionary_add(dict, key, val) _dictionary_add (dict, key, (void *) val)
53
54
void
55
_dictionary_add (
Dictionary
* dict,
const
char
* key,
void
* value);
56
57
void
58
dictionary_free (
Dictionary
* self);
59
64
#endif
DictionaryEntry
Definition
dictionary.h:29
Dictionary
Definition
dictionary.h:35
Dictionary::size
size_t size
Size of the array.
Definition
dictionary.h:39
Dictionary::len
int len
Number of valid elements in the array.
Definition
dictionary.h:37
utils
dictionary.h
Generated by
1.11.0