blob: d4e5a191c520393735cfe516bc2c4da91ec044f1 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
*/
#include <stdbool.h>
#include "nstheme/desktop/gui.h"
#include "nstheme/desktop/nstheme.h"
#include "nstheme/utils/utils.h"
bool application_quit = false;
static void application_init(void);
static void application_exit(void);
/**
* NSTheme main().
*/
int main(int argc, char** argv) {
application_init();
while (!application_quit) gui_poll();
application_exit();
return EXIT_SUCCESS;
}
/**
* Initialise application.
*/
void application_init(void) {
stdout = stderr;
gui_init();
}
/**
* Finalise application.
*/
void application_exit(void) {
gui_exit();
}
|