1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibVideo: Add a forwarding header

And change some non-plain structs to classes for consistency.
This commit is contained in:
Timothy Flynn 2023-04-09 11:59:35 -04:00 committed by Linus Groh
parent 918ed5c920
commit 7132047c92
4 changed files with 24 additions and 5 deletions

View file

@ -10,12 +10,11 @@
#include <AK/Error.h>
#include <AK/Format.h>
#include <AK/SourceLocation.h>
#include <LibVideo/Forward.h>
#include <errno.h>
namespace Video {
struct DecoderError;
template<typename T>
using DecoderErrorOr = ErrorOr<T, DecoderError>;
@ -33,7 +32,7 @@ enum class DecoderErrorCategory : u32 {
NotImplemented,
};
struct DecoderError {
class DecoderError {
public:
static DecoderError with_description(DecoderErrorCategory category, StringView description)
{