X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fipc.h;fp=include%2Fipc.h;h=a1caea827fb7a549cbcde1a3c5c973e14e1ab987;hp=c6ad35c770745038eb99dbd370966fd489bc262f;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/include/ipc.h b/include/ipc.h index c6ad35c7..a1caea82 100644 --- a/include/ipc.h +++ b/include/ipc.h @@ -35,6 +35,11 @@ typedef struct ipc_client { * event has been sent by i3. */ bool first_tick_sent; + struct ev_io *callback; + struct ev_timer *timeout; + uint8_t *buffer; + size_t buffer_size; + TAILQ_ENTRY(ipc_client) clients; } ipc_client; @@ -124,3 +129,9 @@ void ipc_send_barconfig_update_event(Barconfig *barconfig); * For the binding events, we send the serialized binding struct. */ void ipc_send_binding_event(const char *event_type, Binding *bind); + +/** + * Set the maximum duration that we allow for a connection with an unwriteable + * socket. + */ +void ipc_set_kill_timeout(ev_tstamp new);