diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-10 20:23:29 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-29 12:18:02 +0100 |
commit | 1dfb8d45dc04222d3d2f2bb3a8622a7e59d68228 (patch) | |
tree | f781687f66e5a2c4b098a99d855fd686c81fb638 /include | |
parent | d874b3e34173811fa89b68b4b71f22182bc5fd98 (diff) |
libcamera: request: Add a toString()
Provide a toString helper to assist in printing Request state
for debug and logging contexts.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/request.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libcamera/request.h b/include/libcamera/request.h index cd5a2474..4cf5ff3f 100644 --- a/include/libcamera/request.h +++ b/include/libcamera/request.h @@ -10,6 +10,7 @@ #include <map> #include <memory> #include <stdint.h> +#include <string> #include <unordered_set> #include <libcamera/class.h> @@ -56,6 +57,8 @@ public: bool hasPendingBuffers() const { return !pending_.empty(); } + std::string toString() const; + private: LIBCAMERA_DISABLE_COPY(Request) |