aboutsummaryrefslogtreecommitdiffstats
path: root/src/runesd.c
blob: 6a26d6dac67b0c6cb45f339ef74f8f1d5392dc65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "runes.h"

#include "loop.h"
#include "daemon.h"
#include "window-backend-xlib.h"

int main (int argc, char *argv[])
{
    RunesLoop *loop;
    RunesDaemon *daemon;
    RunesWindowBackend *wb;

    UNUSED(argv);

    if (argc > 1) {
        runes_die("runesd takes no arguments; pass them to runesc instead.");
    }

    loop = runes_loop_new();
    wb = runes_window_backend_new();
    daemon = runes_daemon_new(loop, wb);
    UNUSED(daemon);

    runes_loop_run(loop);

#ifdef RUNES_VALGRIND
    runes_daemon_delete(daemon);
    runes_window_backend_delete(wb);
    runes_loop_delete(loop);
#endif

    return 0;
}