rsked/source.cc
/// String canonically naming medium. Return unknown if the medium
/// has not been registered here.
/// * Will not throw
///
String canonically naming medium. Return unknown if the medium
has not been registered here.
Will not throw
String canonically naming medium . Return unknown if the medium has not been registered here . Will not throw
const char* media_name( const Medium m )
{
    switch(m) {
    case Medium::off:  return "off";
    case Medium::radio: return "radio";
    case Medium::stream: return "stream";
    case Medium::file: return "file";
    case Medium::directory: return "directory";
    case Medium::playlist: return "playlist";
    default: return "unknown";
    };
}
const char * media_name ( const Medium m ) { switch ( m ) { case Medium :: off : return " " ; case Medium :: radio : return " " ; case Medium :: stream : return " " ; case Medium :: file : return " " ; case Medium :: directory : return " " ; case Medium :: playlist : return " " ; default : return " " ; } ; }
String canonically naming medium.
String canonically naming medium .