diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-23 11:50:57 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-23 11:50:57 +0100 |
commit | 35dacc36716bdac66bc2673a6725083dc265d310 (patch) | |
tree | 25592a597fcb355c71b0cb6feabc48f703de023b /desktop | |
parent | 12ff7a47f4426bc44103f0123d44fc111608ae18 (diff) | |
download | netsurf-35dacc36716bdac66bc2673a6725083dc265d310.tar.gz netsurf-35dacc36716bdac66bc2673a6725083dc265d310.tar.bz2 |
move the logging initialisation out to be call by frontends
This allows each frontend to pass a distinct callback to configure the
output file stream appropriately for their use.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/gui.h | 4 | ||||
-rw-r--r-- | desktop/netsurf.c | 9 |
2 files changed, 0 insertions, 13 deletions
diff --git a/desktop/gui.h b/desktop/gui.h index f4b8b7215..dc190952b 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -64,10 +64,6 @@ struct form_control; #include "desktop/search.h" #include "utils/errors.h" -/** \todo remove these when each frontend calls nslog_init */ -#include <stdio.h> -bool nslog_ensure(FILE *fptr); - void gui_poll(bool active); void gui_quit(void); diff --git a/desktop/netsurf.c b/desktop/netsurf.c index a67321191..b6e342c58 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -143,15 +143,6 @@ nserror netsurf_init(int *pargc, signal(SIGPIPE, SIG_IGN); #endif -#ifndef HAVE_STDOUT - ret = nslog_init(nslog_ensure, pargc, *pargv); -#else - ret = nslog_init(NULL, pargc, *pargv); -#endif - - if (ret != NSERROR_OK) - return ret; - LOG(("version '%s'", netsurf_version)); if (uname(&utsname) < 0) LOG(("Failed to extract machine information")); |