Getters for main and event sockets

This commit is contained in:
Sergey Naumov
2016-09-04 18:28:49 +03:00
parent 37f56e621b
commit 7393f5c7d4
2 changed files with 19 additions and 3 deletions

View File

@@ -271,10 +271,21 @@ public:
void handle_event();
/**
* Get the file descriptor associated to i3.
* @return the file descriptor associated to i3, -1 if not created yet.
* Get the fd of the main socket
* @return the file descriptor of the main socket.
*/
int32_t get_file_descriptor();
int32_t get_main_socket_fd();
/**
* Get the fd of the event socket
* @return the file descriptor of the event socket.
*/
int32_t get_event_socket_fd();
/**
* @deprecated Use get_event_socket() instead
*/
int32_t get_file_descriptor();
sigc::signal<void, const workspace_event_t&> signal_workspace_event; ///< Workspace event signal
sigc::signal<void> signal_output_event; ///< Output event signal