summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-06-01 15:49:17 +0100
committerVincent Sanders <vince@kyllikki.org>2013-06-01 16:09:39 +0100
commitbccaa05fdb50a1d5f481cf34f6af906638dfc68c (patch)
tree86c32f6652b8b968f3e19fd5907485e601717d54 /framebuffer
parent9bd296987684788c32dd346b2d67671ed5dfe7a0 (diff)
downloadnetsurf-bccaa05fdb50a1d5f481cf34f6af906638dfc68c.tar.gz
netsurf-bccaa05fdb50a1d5f481cf34f6af906638dfc68c.tar.bz2
add finalisation to options and document the API better
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 024ab283f..d9e78d7a8 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -568,9 +568,9 @@ main(int argc, char** argv)
die("Options failed to initialise");
}
options = filepath_find(respaths, "Choices");
- nsoption_read(options, NULL);
+ nsoption_read(options, nsoptions);
free(options);
- nsoption_commandline(&argc, argv, NULL);
+ nsoption_commandline(&argc, argv, nsoptions);
/* common initialisation */
messages = filepath_find(respaths, "Messages");
@@ -625,6 +625,9 @@ main(int argc, char** argv)
netsurf_exit();
+ /* finalise options */
+ nsoption_finalise(nsoptions, nsoptions_default);
+
return 0;
}