Factor out some Dinit client functions tp a new header (dinit-client.h).
[oweals/dinit.git] / src / includes / dinit.h
1 #ifndef DINIT_H_INCLUDED
2 #define DINIT_H_INCLUDED 1
3
4 #include "dasynq.h"
5
6 /*
7  * General Dinit definitions.
8  */
9
10 using eventloop_t = dasynq::event_loop<dasynq::null_mutex>;
11
12 using clock_type = dasynq::clock_type;
13 using rearm = dasynq::rearm;
14 using time_val = dasynq::time_val;
15
16 void open_control_socket(bool report_ro_failure = true) noexcept;
17 void setup_external_log() noexcept;
18
19 extern eventloop_t event_loop;
20
21 #endif