aboutsummaryrefslogtreecommitdiffstats
path: root/src/runesd.c
blob: 344e8342e43f91b3257094e89b78b73e1d283e42 (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
34
35
36
37
#include <locale.h>

#include "runes.h"

#include "loop.h"
#include "socket.h"
#include "window-xlib.h"

int main (int argc, char *argv[])
{
    RunesLoop *loop;
    RunesSocket *socket;
    RunesWindowBackendGlobal *wg;

    UNUSED(argv);

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

    setlocale(LC_ALL, "");

    loop = runes_loop_new();
    wg = runes_window_backend_global_init();
    socket = runes_socket_new(loop, wg);
    UNUSED(socket);

    runes_loop_run(loop);

#ifdef RUNES_VALGRIND
    runes_socket_delete(socket);
    runes_window_backend_global_cleanup(wg);
    runes_loop_delete(loop);
#endif

    return 0;
}