Mercurial > audlegacy-plugins
view src/statusicon/si_cfg.c @ 884:4fd90f2d1832 trunk
[svn] improve support for static playlist:
- make use of Playlist.attribute.
- now xspf plugin is capable of embedding static playlist marker. user can specify at "Save Playlist" dialog.
- all meaningful mtime value will be preserved even if a playlist file is handled as static playlist.
author | yaz |
---|---|
date | Wed, 21 Mar 2007 02:32:49 -0700 |
parents | bad7c89d7ba0 |
children | 1ccc7a9c7fc2 |
line wrap: on
line source
/* * * Author: Giacomo Lozito <james@develia.org>, (C) 2005-2007 * * This program 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 2 of the License, or (at your * option) any later version. * * This program 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 this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ #include "si_cfg.h" #include "si_common.h" #include <audacious/configdb.h> si_cfg_t si_cfg; void si_cfg_load ( void ) { ConfigDb *cfgfile = bmp_cfg_db_open(); if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" , "rclick_menu" , &(si_cfg.rclick_menu) ) ) si_cfg.rclick_menu = SI_CFG_RCLICK_MENU_AUD; bmp_cfg_db_close( cfgfile ); return; } void si_cfg_save ( void ) { ConfigDb *cfgfile = bmp_cfg_db_open(); bmp_cfg_db_set_int( cfgfile , "statusicon" , "rclick_menu" , si_cfg.rclick_menu ); bmp_cfg_db_close( cfgfile ); return; }