Rework the IPC-Code

This commit is contained in:
Axel Wagner
2010-07-23 04:43:43 +02:00
parent 02df973564
commit fb2afacce3
7 changed files with 158 additions and 298 deletions

View File

@ -2,13 +2,10 @@
#define IPC_H_
#include <ev.h>
#include <stdint.h>
ev_io* i3_events;
ev_io* outputs_watcher;
ev_io* workspaces_watcher;
void init_i3(const char* socket_path);
void get_outputs_json(void (*callback)(char*, void*), void* params);
void get_workspaces_json(void (*callback)(char*, void*), void* params);
int init_connection(const char *socket_path);
int i3_send_msg(uint32_t type, const char* payload);
void subscribe_events();
#endif

View File

@ -8,7 +8,7 @@ typedef struct i3_output_t i3_output;
i3_output* outputs;
void refresh_outputs();
void parse_outputs_json(char* json);
void free_outputs();
i3_output* get_output_by_name(char* name);

View File

@ -8,7 +8,7 @@ typedef struct i3_ws_t i3_ws;
i3_ws* workspaces;
void refresh_workspaces();
void parse_workspaces_json();
void free_workspaces();
struct i3_ws_t {