summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/base/file.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libcamera/base/file.h b/include/libcamera/base/file.h
index 452a658b..eebb2402 100644
--- a/include/libcamera/base/file.h
+++ b/include/libcamera/base/file.h
@@ -30,13 +30,15 @@ public:
using MapFlags = Flags<MapFlag>;
- enum OpenMode {
+ enum OpenModeFlag {
NotOpen = 0,
ReadOnly = (1 << 0),
WriteOnly = (1 << 1),
ReadWrite = ReadOnly | WriteOnly,
};
+ using OpenMode = Flags<OpenModeFlag>;
+
File(const std::string &name);
File();
~File();