refactor(alsa): Forward alsa structs and split classes

This commit is contained in:
Michael Carlberg
2016-12-13 14:26:09 +01:00
parent a33c15b3ad
commit 5e2a0bd298
10 changed files with 608 additions and 505 deletions

View File

@ -1,5 +1,7 @@
#include "modules/volume.hpp"
#include "adapters/alsa/control.hpp"
#include "adapters/alsa/generic.hpp"
#include "adapters/alsa/mixer.hpp"
#include "drawtypes/label.hpp"
#include "drawtypes/progressbar.hpp"
#include "drawtypes/ramp.hpp"
@ -10,6 +12,8 @@
POLYBAR_NS
using namespace alsa;
namespace modules {
template class module<volume_module>;
template class event_module<volume_module>;
@ -53,9 +57,9 @@ namespace modules {
if (m_mixer.empty()) {
throw module_error("No configured mixers");
}
} catch (const alsa_mixer_error& err) {
} catch (const mixer_error& err) {
throw module_error(err.what());
} catch (const alsa_ctl_interface_error& err) {
} catch (const control_error& err) {
throw module_error(err.what());
}