vdr-plugin-softhddevice-drm-gles 1.6.7
event.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-or-later
2
10#ifndef __EVENT_H
11#define __EVENT_H
12
13#include <variant>
14#include <vdr/tools.h>
15
16#include "config.h"
17
18/********************************************************************************
19 * Event Handler
20 *
21 * Controls the state machine.
22 *******************************************************************************/
23
33
34struct PlayEvent {};
35struct PauseEvent {};
36struct StopEvent {};
38 double speed;
39 bool active;
40 bool forward;
41};
43 const uchar *data;
44 int size;
45};
46struct DetachEvent {};
47struct AttachEvent {};
55struct ResyncEvent {};
59
60using Event = std::variant<
73>;
74
83public:
84 virtual void OnEventReceived(const Event&) = 0;
85};
86
87#endif
Event Receiver.
Definition event.h:82
virtual void OnEventReceived(const Event &)=0
Plugin Configuration Header File.
std::variant< PlayEvent, PauseEvent, StopEvent, TrickSpeedEvent, StillPictureEvent, DetachEvent, AttachEvent, BufferUnderrunEvent, BufferingThresholdReachedEvent, ScheduleResyncAtPtsMsEvent, ResyncEvent, DisplayChangeEvent > Event
Definition event.h:73
BufferUnderrunType
Definition event.h:29
@ VIDEO
Definition event.h:30
@ AUDIO
Definition event.h:31
BufferUnderrunType type
Definition event.h:49
sDrmMode mode
Definition event.h:57
const uchar * data
Definition event.h:43
double speed
Definition event.h:38
bool active
Definition event.h:39
bool forward
Definition event.h:40
Holds possible display configurations.
Definition config.h:30