decoder/Client: new interface which wraps struct Decoder
Prepare for a Decoder API redesign based on an abstract class with virtual methods.
This commit is contained in:
@@ -21,17 +21,15 @@
|
||||
#define FAKE_DECODER_API_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "decoder/Client.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "thread/Cond.hxx"
|
||||
|
||||
struct Decoder {
|
||||
struct FakeDecoder final : DecoderClient {
|
||||
Mutex mutex;
|
||||
Cond cond;
|
||||
|
||||
bool initialized;
|
||||
|
||||
Decoder()
|
||||
:initialized(false) {}
|
||||
bool initialized = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user