diff options
Diffstat (limited to 'src/defaults.c')
-rw-r--r-- | src/defaults.c | 75 |
1 files changed, 13 insertions, 62 deletions
diff --git a/src/defaults.c b/src/defaults.c index e409480..dc54dd4 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -1,74 +1,25 @@ /************************************************************************ - * This file is part of trayfreq. * + * This file is part of trayfreq-archlinux. * * * - * trayfreq is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published * - * by the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * + * trayfreq-archlinux is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * * * - * trayfreq is distributed in the hope that it will be useful, * + * trayfreq-archlinux is distributed in the hope that it will be useful,* * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with trayfreq. If not, see <http://www.gnu.org/licenses/>. * + * along with trayfreq-archlinux. If not, see * + * <http://www.gnu.org/licenses/>. * ************************************************************************/ #include "defaults.h" -gchar* default_gov = NULL; -gchar* default_freq = NULL; -gchar* default_prog = NULL; -gchar* default_bat_gov = NULL; -gchar* default_ac_gov = NULL; - -gchar* def_get_gov() -{ - return default_gov; -} - -gchar* def_get_freq() -{ - return default_freq; -} - -gchar* def_get_prog() -{ - return default_prog; -} - -gchar* def_get_bat_gov() -{ - return default_bat_gov; -} - -gchar* def_get_ac_gov() -{ - return default_ac_gov; -} - -void def_set_gov(gchar* gov) -{ - default_gov = g_strdup(gov); -} - -void def_set_freq(gchar* freq) -{ - default_freq = g_strdup(freq); -} - -void def_set_prog(gchar* prog) -{ - default_prog = g_strdup(prog); -} - -void def_set_bat_gov(gchar* bat_gov) -{ - default_bat_gov = bat_gov; -} - -void def_set_ac_gov(gchar* ac_gov) -{ - default_ac_gov = ac_gov; -}
\ No newline at end of file +char* _DEFAULT_GOV = NULL; +char* _DEFAULT_FREQ = NULL; +char* _DEFAULT_PROG = NULL; +char* _DEFAULT_BAT_GOV = NULL; +char* _DEFAULT_AC_GOV = NULL;
\ No newline at end of file |