f354f53435
Including config.h is necessary to get e.g. the _GNU_SOURCE define and any other definitions that autoconf declares. Hence, config.h needs to be included as the first header in each file. This is done either via: 1. Including "common.h" (i3bar) 2. Including "libi3.h" 3. Including "all.h" (i3) 4. Including <config.h> directly Also remove now-unused I3__FILE__, add copyright/license statement where missing and switch include/all.h to #pragma once.
27 lines
792 B
C
27 lines
792 B
C
/*
|
||
* vim:ts=4:sw=4:expandtab
|
||
*
|
||
* i3 - an improved dynamic tiling window manager
|
||
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
||
*
|
||
* display_version.c: displays the running i3 version, runs as part of
|
||
* i3 --moreversion.
|
||
*/
|
||
#pragma once
|
||
|
||
#include <config.h>
|
||
|
||
/**
|
||
* Connects to i3 to find out the currently running version. Useful since it
|
||
* might be different from the version compiled into this binary (maybe the
|
||
* user didn’t correctly install i3 or forgot te restart it).
|
||
*
|
||
* The output looks like this:
|
||
* Running i3 version: 4.2-202-gb8e782c (2012-08-12, branch "next") (pid 14804)
|
||
*
|
||
* The i3 binary you just called: /home/michael/i3/i3
|
||
* The i3 binary you are running: /home/michael/i3/i3
|
||
*
|
||
*/
|
||
void display_running_version(void);
|