diff options
Diffstat (limited to 'test/list-cameras.cpp')
-rw-r--r-- | test/list-cameras.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/list-cameras.cpp b/test/list-cameras.cpp index e2026c99..fdbbda09 100644 --- a/test/list-cameras.cpp +++ b/test/list-cameras.cpp @@ -7,6 +7,7 @@ #include <iostream> +#include <libcamera/camera.h> #include <libcamera/camera_manager.h> #include "test.h" @@ -29,8 +30,8 @@ protected: { unsigned int count = 0; - for (auto name : cm->list()) { - cout << "- " << name << endl; + for (Camera *camera : cm->cameras()) { + cout << "- " << camera->name() << endl; count++; } |