Send CaptureThread error into app-local message queue.

This commit is contained in:
Jared Boone 2016-06-21 11:04:10 -07:00
parent 76c5fe96af
commit cfaa44b02a
5 changed files with 42 additions and 17 deletions

View file

@ -64,6 +64,7 @@ public:
SpectrumStreamingConfig = 15,
DisplaySleep = 16,
CaptureConfig = 17,
CaptureThreadError = 18,
MAX
};
@ -494,4 +495,16 @@ public:
CaptureConfig* const config;
};
class CaptureThreadErrorMessage : public Message {
public:
constexpr CaptureThreadErrorMessage(
uint32_t error
) : Message { ID::CaptureThreadError },
error { error }
{
}
uint32_t error;
};
#endif/*__MESSAGE_H__*/