Eventloop cleanup ()

* eventloop: Use eventloop namespace in cpp files

* changelog: Add missing deprecated hook message

* Make eventloop and ipc classes non-copyable and non-movable

* Remove functional.hpp

* eventloop: Don't close handles in error cases

Client should be responsible for closing handles.

* eventloop: Address invalidation of handle references
This commit is contained in:
Patrick Ziegler 2022-01-22 22:00:26 +01:00 committed by GitHub
parent 3356188056
commit c2f087225c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 86 additions and 80 deletions
include/utils

View file

@ -5,7 +5,6 @@
#include "components/types.hpp"
#include "errors.hpp"
#include "utils/file.hpp"
#include "utils/functional.hpp"
POLYBAR_NS
@ -86,7 +85,7 @@ class command<output_policy::REDIRECTED> : private command<output_policy::IGNORE
using command<output_policy::IGNORED>::get_pid;
using command<output_policy::IGNORED>::get_exit_status;
void tail(callback<string> cb);
void tail(std::function<void(string)> cb);
string readline();
int get_stdout(int c);