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