mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
e2efda19df
More compiler warning fixes. svn path=/import/netsurf/; revision=104
57 lines
857 B
C
57 lines
857 B
C
/**
|
|
* $Id: netsurf.c,v 1.7 2003/03/04 11:59:35 bursa Exp $
|
|
*/
|
|
|
|
#include "netsurf/desktop/netsurf.h"
|
|
#include "netsurf/desktop/browser.h"
|
|
#include "netsurf/desktop/gui.h"
|
|
#include "netsurf/content/cache.h"
|
|
#include "netsurf/content/fetch.h"
|
|
#include "netsurf/utils/log.h"
|
|
#include <stdlib.h>
|
|
|
|
int netsurf_quit = 0;
|
|
gui_window* netsurf_gui_windows = NULL;
|
|
|
|
static void netsurf_init(int argc, char** argv);
|
|
static void netsurf_exit(void);
|
|
|
|
|
|
void netsurf_poll(void)
|
|
{
|
|
gui_poll();
|
|
fetch_poll();
|
|
}
|
|
|
|
|
|
void netsurf_init(int argc, char** argv)
|
|
{
|
|
stdout = stderr;
|
|
gui_init(argc, argv);
|
|
fetch_init();
|
|
cache_init();
|
|
}
|
|
|
|
|
|
void netsurf_exit(void)
|
|
{
|
|
cache_quit();
|
|
fetch_quit();
|
|
}
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
netsurf_init(argc, argv);
|
|
|
|
while (netsurf_quit == 0)
|
|
netsurf_poll();
|
|
|
|
LOG(("Netsurf quit!"));
|
|
netsurf_exit();
|
|
|
|
return 0;
|
|
}
|
|
|
|
|