summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/main.cpp
blob: e2323e48d28944a168a614b093681bdd8c7cee3d (plain)
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
#include "IRCAppWindow.h"
#include "IRCClient.h"
#include <LibGUI/GApplication.h>
#include <stdio.h>

int main(int argc, char** argv)
{
    if (pledge("stdio inet dns unix shared_buffer cpath rpath fattr", nullptr) < 0) {
        perror("pledge");
        return 1;
    }

    GApplication app(argc, argv);

    if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) {
        perror("pledge");
        return 1;
    }

    IRCAppWindow app_window;
    app_window.show();

    printf("Entering main loop...\n");
    return app.exec();
}