GOptionContext: add memory-friendly parse mode
authorRyan Lortie <desrt@desrt.ca>
Fri, 10 Jan 2014 17:16:24 +0000 (12:16 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 10 Jan 2014 17:32:35 +0000 (12:32 -0500)
commitf062fae4d6d705736c2b1b899c4413b99d4cfc96
tree6ea0accbf0bde4cbf50b6b16aa1e172b759e4ed9
parentd3017967d8123e800fd593e22fda1c0d7f40071f
GOptionContext: add memory-friendly parse mode

Add g_option_context_parse_strv() that obeys the normal memory conventions for
dealing with a strv instead of assuming that we're dealing with the 'argv'
parameter to main().

This will help for using GOptionContext with GApplication.

https://bugzilla.gnome.org/show_bug.cgi?id=721947
docs/reference/glib/glib-sections.txt
glib/goption.c
glib/goption.h