i3bar: Make header declarations extern

See #3914
This commit is contained in:
Orestis Floros
2020-01-25 16:26:54 +01:00
parent e9f011397a
commit d14e59b3a7
8 changed files with 13 additions and 6 deletions

View File

@ -17,7 +17,7 @@
typedef struct rect_t rect;
struct ev_loop *main_loop;
extern struct ev_loop *main_loop;
struct rect_t {
int x;
@ -82,8 +82,8 @@ struct status_block {
blocks;
};
TAILQ_HEAD(statusline_head, status_block)
statusline_head;
extern TAILQ_HEAD(statusline_head, status_block)
statusline_head;
#include "child.h"
#include "ipc.h"

View File

@ -74,7 +74,7 @@ typedef struct config_t {
S_SHOW = 1 } hidden_state;
} config_t;
config_t config;
extern config_t config;
/**
* Start parsing the received bar configuration JSON string

View File

@ -19,7 +19,7 @@
typedef struct i3_output i3_output;
SLIST_HEAD(outputs_head, i3_output);
struct outputs_head* outputs;
extern struct outputs_head* outputs;
/*
* Start parsing the received JSON string

View File

@ -53,7 +53,7 @@ struct xcb_color_strings_t {
typedef struct xcb_colors_t xcb_colors_t;
/* Cached width of the custom separator if one was set */
int separator_symbol_width;
extern int separator_symbol_width;
/*
* Early initialization of the connection to X11: Everything which does not