Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
dictionary.h File Reference

Dictionary implementation. More...

#include <stdlib.h>
#include <gtk/gtk.h>
Include dependency graph for dictionary.h:

Go to the source code of this file.

Data Structures

struct  DictionaryEntry
 
struct  Dictionary
 

Macros

#define DICTIONARY_PUSH(s, element)   dictionary_push (s, (void *) element)
 
#define dictionary_find_simple(dict, key, type)    ((type *) dictionary_find (dict, key, NULL))
 
#define dictionary_add(dict, key, val)   _dictionary_add (dict, key, (void *) val)
 

Functions

Dictionarydictionary_new (void)
 
void * dictionary_find (Dictionary *dict, const char *key, void *def)
 
void _dictionary_add (Dictionary *dict, const char *key, void *value)
 
void dictionary_free (Dictionary *self)
 

Detailed Description

Dictionary implementation.

Definition in file dictionary.h.

Macro Definition Documentation

◆ dictionary_add

#define dictionary_add ( dict,
key,
val )   _dictionary_add (dict, key, (void *) val)

Definition at line 52 of file dictionary.h.

◆ dictionary_find_simple

#define dictionary_find_simple ( dict,
key,
type )    ((type *) dictionary_find (dict, key, NULL))

Definition at line 46 of file dictionary.h.

◆ DICTIONARY_PUSH

#define DICTIONARY_PUSH ( s,
element )   dictionary_push (s, (void *) element)

Definition at line 26 of file dictionary.h.