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:
parent
918ed5c920
commit
7132047c92
4 changed files with 24 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue