pnmixer
Volume mixer for the system tray
prefs.h
Go to the documentation of this file.
1 /* prefs.h
2  * PNmixer is written by Nick Lanham, a fork of OBmixer
3  * which was programmed by Lee Ferrett, derived
4  * from the program "AbsVolume" by Paul Sherman
5  * This program is free software; you can redistribute
6  * it and/or modify it under the terms of the GNU General
7  * Public License v3. source code is available at
8  * <http://github.com/nicklan/pnmixer>
9  */
10 
17 #ifndef _PREFS_H_
18 #define _PREFS_H_
19 
20 #include <glib.h>
21 
22 void prefs_load(void);
23 void prefs_save(void);
24 void prefs_ensure_save_dir(void);
25 
26 gboolean prefs_get_boolean(const gchar *key, gboolean def);
27 gint prefs_get_integer(const gchar *key, gint def);
28 gdouble prefs_get_double(const gchar *key, gdouble def);
29 gchar *prefs_get_string(const gchar *key, const gchar *def);
30 gdouble *prefs_get_double_list(const gchar *key, gsize *n);
31 gchar *prefs_get_channel(const gchar *card);
32 
33 void prefs_set_boolean(const gchar *key, gboolean value);
34 void prefs_set_integer(const gchar *key, gint value);
35 void prefs_set_double(const gchar *key, gdouble value);
36 void prefs_set_string(const gchar *key, const gchar *value);
37 void prefs_set_double_list(const gchar *key, gdouble *list, gsize n);
38 void prefs_set_channel(const gchar *card, const gchar *channel);
39 
40 #endif // _PREFS_H_
void prefs_set_double_list(const gchar *key, gdouble *list, gsize n)
Definition: prefs.c:322
gchar * prefs_get_channel(const gchar *card)
Definition: prefs.c:259
void prefs_set_channel(const gchar *card, const gchar *channel)
Definition: prefs.c:334
void prefs_set_boolean(const gchar *key, gboolean value)
Definition: prefs.c:273
void prefs_set_string(const gchar *key, const gchar *value)
Definition: prefs.c:309
gdouble prefs_get_double(const gchar *key, gdouble def)
Definition: prefs.c:148
void prefs_save(void)
Definition: prefs.c:381
void prefs_ensure_save_dir(void)
Definition: prefs.c:405
gdouble * prefs_get_double_list(const gchar *key, gsize *n)
Definition: prefs.c:206
gchar * prefs_get_string(const gchar *key, const gchar *def)
Definition: prefs.c:171
gint prefs_get_integer(const gchar *key, gint def)
Definition: prefs.c:125
gboolean prefs_get_boolean(const gchar *key, gboolean def)
Definition: prefs.c:102
void prefs_load(void)
Definition: prefs.c:344
void prefs_set_double(const gchar *key, gdouble value)
Definition: prefs.c:297
void prefs_set_integer(const gchar *key, gint value)
Definition: prefs.c:285