27 lines
435 B
C
27 lines
435 B
C
|
/*
|
||
|
* Copyright 2015 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <gui/settings.h>
|
||
|
|
||
|
static GHashTable *gui_settings = NULL;
|
||
|
|
||
|
|
||
|
void gui_settings_init()
|
||
|
{
|
||
|
gui_settings = g_hash_table_new_full(g_str_hash, g_str_equal,
|
||
|
g_free, NULL);
|
||
|
}
|
||
|
|
||
|
void gui_settings_deinit()
|
||
|
{
|
||
|
g_hash_table_destroy(gui_settings);
|
||
|
gui_settings = NULL;
|
||
|
}
|
||
|
|
||
|
#ifdef CONFIG_TESTING
|
||
|
GHashTable *test_get_gui_settings()
|
||
|
{
|
||
|
return gui_settings;
|
||
|
}
|
||
|
#endif /* CONFIG_TESTING */
|