* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* child.c: Getting Input for the statusline
*
* kill()s the child-process (if any). Called when exit()ing.
*
*/
-void kill_child_at_exit();
+void kill_child_at_exit(void);
/*
* kill()s the child-process (if any) and closes and
* free()s the stdin- and sigchild-watchers
*
*/
-void kill_child();
+void kill_child(void);
/*
* Sends a SIGSTOP to the child-process (if existent)
*
*/
-void stop_child();
+void stop_child(void);
/*
* Sends a SIGCONT to the child-process (if existent)
*
*/
-void cont_child();
+void cont_child(void);
#endif
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* ipc.c: Communicating with i3
*
* Destroy the connection to i3.
*
*/
-void destroy_connection();
+void destroy_connection(void);
/*
* Sends a Message to i3.
* Subscribe to all the i3-events, we need
*
*/
-void subscribe_events();
+void subscribe_events(void);
#endif
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* outputs.c: Maintaining the output-list
*
* Initiate the output-list
*
*/
-void init_outputs();
+void init_outputs(void);
/*
* Returns the output with the given name
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* workspaces.c: Maintaining the workspace-lists
*
* free() all workspace data-structures
*
*/
-void free_workspaces();
+void free_workspaces(void);
struct i3_ws {
int num; /* The internal number of the ws */
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* xcb.c: Communicating with X
*
* Called once, before the program terminates.
*
*/
-void clean_xcb();
+void clean_xcb(void);
/*
* Get the earlier requested atoms and save them in the prepared data-structure
*
*/
-void get_atoms();
+void get_atoms(void);
/*
* Reparents all tray clients of the specified output to the root window. This
* Reallocate the statusline-buffer
*
*/
-void realloc_sl_buffer();
+void realloc_sl_buffer(void);
/*
* Reconfigure all bars and create new for newly activated outputs
*
*/
-void reconfig_windows();
+void reconfig_windows(void);
/*
* Render the bars, with buttons and statusline
*
*/
-void draw_bars();
+void draw_bars(void);
/*
* Redraw the bars, i.e. simply copy the buffer to the barwindow
*
*/
-void redraw_bars();
+void redraw_bars(void);
#endif
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* child.c: Getting Input for the statusline
*
* Stop and free() the stdin- and sigchild-watchers
*
*/
-void cleanup() {
+void cleanup(void) {
if (stdin_io != NULL) {
ev_io_stop(main_loop, stdin_io);
FREE(stdin_io);
* kill()s the child-process (if any). Called when exit()ing.
*
*/
-void kill_child_at_exit() {
+void kill_child_at_exit(void) {
if (child_pid != 0) {
kill(child_pid, SIGCONT);
kill(child_pid, SIGTERM);
* free()s the stdin- and sigchild-watchers
*
*/
-void kill_child() {
+void kill_child(void) {
if (child_pid != 0) {
kill(child_pid, SIGCONT);
kill(child_pid, SIGTERM);
* Sends a SIGSTOP to the child-process (if existent)
*
*/
-void stop_child() {
+void stop_child(void) {
if (child_pid != 0) {
kill(child_pid, SIGSTOP);
}
* Sends a SIGCONT to the child-process (if existent)
*
*/
-void cont_child() {
+void cont_child(void) {
if (child_pid != 0) {
kill(child_pid, SIGCONT);
}
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* ipc.c: Communicating with i3
*
/*
* Destroy the connection to i3.
*/
-void destroy_connection() {
+void destroy_connection(void) {
close(i3_connection->fd);
ev_io_stop(main_loop, i3_connection);
}
* Subscribe to all the i3-events, we need
*
*/
-void subscribe_events() {
+void subscribe_events(void) {
if (config.disable_ws) {
i3_send_msg(I3_IPC_MESSAGE_TYPE_SUBSCRIBE, "[ \"output\" ]");
} else {
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* outputs.c: Maintaining the output-list
*
* Initiate the output-list
*
*/
-void init_outputs() {
+void init_outputs(void) {
outputs = smalloc(sizeof(struct outputs_head));
SLIST_INIT(outputs);
}
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* workspaces.c: Maintaining the workspace-lists
*
* free() all workspace data-structures. Does not free() the heads of the tailqueues.
*
*/
-void free_workspaces() {
+void free_workspaces(void) {
i3_output *outputs_walk;
if (outputs == NULL) {
return;
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
*
* xcb.c: Communicating with X
*
* Redraws the statusline to the buffer
*
*/
-void refresh_statusline() {
+void refresh_statusline(void) {
struct status_block *block;
uint32_t old_statusline_width = statusline_width;
* Hides all bars (unmaps them)
*
*/
-void hide_bars() {
+void hide_bars(void) {
if (!config.hide_on_modifier) {
return;
}
* Unhides all bars (maps them)
*
*/
-void unhide_bars() {
+void unhide_bars(void) {
if (!config.hide_on_modifier) {
return;
}
* new tray client or removing an old one.
*
*/
-static void configure_trayclients() {
+static void configure_trayclients(void) {
trayclient *trayclient;
i3_output *output;
SLIST_FOREACH(output, outputs, slist) {
* atom. Afterwards, tray clients will send ClientMessages to our window.
*
*/
-void init_tray() {
+void init_tray(void) {
DLOG("Initializing system tray functionality\n");
/* request the tray manager atom for the X11 display we are running on */
char atomname[strlen("_NET_SYSTEM_TRAY_S") + 11];
* Called once, before the program terminates.
*
*/
-void clean_xcb() {
+void clean_xcb(void) {
i3_output *o_walk;
free_workspaces();
SLIST_FOREACH(o_walk, outputs, slist) {
* Get the earlier requested atoms and save them in the prepared data structure
*
*/
-void get_atoms() {
+void get_atoms(void) {
xcb_intern_atom_reply_t *reply;
#define ATOM_DO(name) reply = xcb_intern_atom_reply(xcb_connection, atom_cookies[name], NULL); \
if (reply == NULL) { \
* Reallocate the statusline-buffer
*
*/
-void realloc_sl_buffer() {
+void realloc_sl_buffer(void) {
DLOG("Re-allocating statusline-buffer, statusline_width = %d, root_screen->width_in_pixels = %d\n",
statusline_width, root_screen->width_in_pixels);
xcb_free_pixmap(xcb_connection, statusline_pm);
* Reconfigure all bars and create new bars for recently activated outputs
*
*/
-void reconfig_windows() {
+void reconfig_windows(void) {
uint32_t mask;
uint32_t values[5];
static bool tray_configured = false;
* Render the bars, with buttons and statusline
*
*/
-void draw_bars() {
+void draw_bars(void) {
DLOG("Drawing Bars...\n");
int i = 0;
* Redraw the bars, i.e. simply copy the buffer to the barwindow
*
*/
-void redraw_bars() {
+void redraw_bars(void) {
i3_output *outputs_walk;
SLIST_FOREACH(outputs_walk, outputs, slist) {
if (!outputs_walk->active) {