summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorNicolas Schodet2019-11-13 22:35:11 +0100
committerNicolas Schodet2019-11-14 00:41:59 +0100
commitea90facf4674046e0a58969a6e0eb23054c550de (patch)
tree2ad747ab3f376b0102bedb21d996555fa1416343 /options.h
parentaea9101e6b3da183adcd99f5377c799d194efd11 (diff)
Use GLib for command line too
Diffstat (limited to 'options.h')
-rw-r--r--options.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/options.h b/options.h
index 3cc0681..86741cf 100644
--- a/options.h
+++ b/options.h
@@ -23,6 +23,7 @@
* Email: <nico at ni.fr.eu.org>
*/
#include <stdbool.h>
+#include <gtk/gtk.h>
/* Runtime options. */
struct options {
@@ -34,16 +35,19 @@ struct options {
double exposure_ms;
/* Digital gain after image acquisition, -1.0 for default. */
double gain;
- /* When zero, run interactive mode, else number of frame to dump. */
+ /* Number of frame to dump. */
int count;
- /* Output file name or pattern, only used in dump mode. This should
- * include a printf like pattern (%d) used to name the files. Only used in
- * dump mode. */
+ /* Output file name or pattern. This should include a printf like pattern
+ * (%d) used to name the files. */
const char *out;
};
-/* Parse command line options and fill provided options structure. */
+/* Add options to application. */
void
-options_parse(int argc, char **argv, struct options *options);
+options_add(GApplication *app);
+
+/* Handle options. */
+gint
+options_handle(GApplication *app, GVariantDict *options_dict);
#endif /* options_h */