rsked/mp3player.cc
/// Init: extract binary path for mp3 player
///
extract binary path for mp3 player
extract binary path for mp3 player
void Mp3_player::initialize( Config& cfg, bool  )
{
    const char *section=m_name.c_str();
    cfg.get_bool(section, "enabled" ,m_enabled);
    if (not m_enabled) {
        LOG_INFO(Lgr) << "Mp3_player '" << m_name << "' (disabled)";
    }
    boost::filesystem::path binpath { DefaultBinPath };
    cfg.get_pathname(section, "mp3_bin_path", FileCond::MustExist, binpath );
    m_cm->set_binary( binpath );
    LOG_INFO(Lgr) << m_name << " initialized";
}
void Mp3_player :: initialize ( Config & cfg , bool ) { const char * section = m_name . c_str ( ) ; cfg . get_bool ( section , " " , m_enabled ) ; if ( not m_enabled ) { LOG_INFO ( Lgr ) << " " << m_name << " " ; } boost :: filesystem :: path binpath { DefaultBinPath } ; cfg . get_pathname ( section , " " , FileCond :: MustExist , binpath ) ; m_cm -> set_binary ( binpath ) ; LOG_INFO ( Lgr ) << m_name << " " ; }
Init: extract binary path for mp3 player
Init : extract binary path for mp3 player
/* testp */