summaryrefslogtreecommitdiff
path: root/src/cam/main.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-23 01:45:09 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-25 14:27:55 +0200
commite741a5482c3e5a8c5468d030a7b5ba2f07201577 (patch)
treec459ed89a8f8f9987ac4b91bca010e847bb463b2 /src/cam/main.h
parent9342c606495a2bc5485b69c51f16d5730bb0386c (diff)
cam: capture: Break out capture to a new class
Reduce the complexity of main.cpp by compartmentalising the capture logic into its own class. There is no functional change. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/main.h')
-rw-r--r--src/cam/main.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cam/main.h b/src/cam/main.h
new file mode 100644
index 00000000..fff81b1f
--- /dev/null
+++ b/src/cam/main.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2019, Google Inc.
+ *
+ * main.h - Cam application
+ */
+#ifndef __CAM_MAIN_H__
+#define __CAM_MAIN_H__
+
+enum {
+ OptCamera = 'c',
+ OptCapture = 'C',
+ OptFile = 'F',
+ OptHelp = 'h',
+ OptList = 'l',
+ OptStream = 's',
+};
+
+#endif /* __CAM_MAIN_H__ */