summaryrefslogtreecommitdiff
path: root/desktop/nstheme.c
blob: 0120b8cf8a0e8c04c6c4a236553af6772d55dcfc (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
45
/*
 * 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 <stdio.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();
}