From 6330f8e475bad2aa9dd3f0f7994a25980491023c Mon Sep 17 00:00:00 2001 From: François Revel Date: Thu, 16 Oct 2008 11:10:43 +0000 Subject: Have netsurf_main() do the real work and main() call it. This allows ports to call it from elsewhere to embed NetSurf in another application. The netsurf_embedded bool remembers it for later (like, we shouldn't probably save the hotlist and preferences in that case). svn path=/trunk/netsurf/; revision=5579 --- desktop/netsurf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop/netsurf.h') diff --git a/desktop/netsurf.h b/desktop/netsurf.h index 1dc4834c2..bfb97c539 100644 --- a/desktop/netsurf.h +++ b/desktop/netsurf.h @@ -22,9 +22,12 @@ #include extern bool netsurf_quit; +extern bool netsurf_embedded; extern bool verbose_log; extern const char * const netsurf_version; extern const int netsurf_version_major; extern const int netsurf_version_minor; +extern int netsurf_main(int argc, char** argv); + #endif -- cgit v1.2.3