input/async: move enum definition down

This commit is contained in:
Max Kellermann 2024-07-29 22:03:03 +02:00
parent fb151c8662
commit f54210bf68
1 changed files with 4 additions and 6 deletions

View File

@ -18,10 +18,6 @@
* the regular #InputStream API. * the regular #InputStream API.
*/ */
class AsyncInputStream : public InputStream { class AsyncInputStream : public InputStream {
enum class SeekState : uint8_t {
NONE, SCHEDULED, PENDING
};
InjectEvent deferred_resume; InjectEvent deferred_resume;
InjectEvent deferred_seek; InjectEvent deferred_seek;
@ -30,6 +26,10 @@ class AsyncInputStream : public InputStream {
CircularBuffer<std::byte> buffer; CircularBuffer<std::byte> buffer;
const size_t resume_at; const size_t resume_at;
enum class SeekState : uint_least8_t {
NONE, SCHEDULED, PENDING
} seek_state = SeekState::NONE;
bool open = true; bool open = true;
/** /**
@ -39,8 +39,6 @@ class AsyncInputStream : public InputStream {
*/ */
bool paused = false; bool paused = false;
SeekState seek_state = SeekState::NONE;
/** /**
* The #Tag object ready to be requested via * The #Tag object ready to be requested via
* InputStream::ReadTag(). * InputStream::ReadTag().