polybar-dwm/include/utils/io.hpp

15 lines
281 B
C++
Raw Normal View History

#pragma once
2016-05-19 14:41:06 +00:00
2016-06-15 03:32:35 +00:00
#include "common.hpp"
2016-11-19 05:22:44 +00:00
POLYBAR_NS
2016-06-15 03:32:35 +00:00
namespace io_util {
2016-11-25 12:55:15 +00:00
void tail(int read_fd, const function<void(string)>& callback);
2016-05-19 14:41:06 +00:00
2017-01-11 17:15:46 +00:00
bool poll(int fd, short int events, int timeout_ms = 0);
bool poll_read(int fd, int timeout_ms = 0);
} // namespace io_util
2016-06-15 03:32:35 +00:00
2016-11-19 05:22:44 +00:00
POLYBAR_NS_END