aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h3
-rw-r--r--include/swaybar/config.h17
-rw-r--r--include/swaybar/ipc.h5
3 files changed, 13 insertions, 12 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index 3ae8c0b3..df685f47 100644
--- a/include/swaybar/bar.h
+++ b/include/swaybar/bar.h
@@ -17,6 +17,9 @@ struct swaybar {
struct swaybar_config *config;
struct swaybar_output *focused_output;
+ int ipc_event_socketfd;
+ int ipc_socketfd;
+
struct wl_list outputs;
};
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index 1bfe4843..4b3b5b34 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -2,21 +2,20 @@
#define _SWAYBAR_CONFIG_H
#include <stdbool.h>
#include <stdint.h>
-#include "list.h"
+#include <wayland-client.h>
#include "util.h"
-/**
- * Colors for a box with background, border and text colors.
- */
struct box_colors {
uint32_t border;
uint32_t background;
uint32_t text;
};
-/**
- * Swaybar config.
- */
+struct config_output {
+ struct wl_list link;
+ char *name;
+};
+
struct swaybar_config {
char *status_command;
bool pango_markup;
@@ -28,8 +27,7 @@ struct swaybar_config {
bool binding_mode_indicator;
bool wrap_scroll;
bool workspace_buttons;
- bool all_outputs;
- list_t *outputs;
+ struct wl_list outputs;
int height;
struct {
@@ -51,5 +49,6 @@ struct swaybar_config {
struct swaybar_config *init_config();
void free_config(struct swaybar_config *config);
+uint32_t parse_position(const char *position);
#endif
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h
index 57a1b925..7f71a506 100644
--- a/include/swaybar/ipc.h
+++ b/include/swaybar/ipc.h
@@ -2,8 +2,7 @@
#define _SWAYBAR_IPC_H
#include "swaybar/bar.h"
-void ipc_bar_init(struct swaybar *bar, const char *bar_id);
-bool handle_ipc_event(struct swaybar *bar);
-void ipc_send_workspace_command(const char *workspace_name);
+void ipc_get_config(struct swaybar *bar, const char *bar_id);
+void handle_ipc_event(struct swaybar *bar);
#endif