From 81e7689bb168a74c0822846729d992128da97322 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 23 Oct 2022 02:51:10 +0300 Subject: libcamera: stream: Turn StreamRole into scoped enumeration The StreamRole enum has enumerators such as 'Raw' that are too generic to be in the global libcamera namespace. Turn it into a scoped enum to avoid namespace clashes, and update users accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Jacopo Mondi --- include/libcamera/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libcamera') diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index efec695a..29235ddf 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -62,7 +62,7 @@ private: StreamFormats formats_; }; -enum StreamRole { +enum class StreamRole { Raw, StillCapture, VideoRecording, -- cgit v1.2.1