sndio: Add reconnection support.

This commit is contained in:
Érico Rolim
2020-10-04 02:53:21 -03:00
parent aa625f5196
commit 22e46ea6cc
2 changed files with 49 additions and 14 deletions

View File

@ -18,6 +18,7 @@ class Sndio : public ALabel {
bool handleToggle(GdkEventButton* const&);
private:
auto connect_to_sndio() -> void;
util::SleeperThread thread_;
struct sioctl_hdl *hdl_;
std::vector<struct pollfd> pfds_;