[ion] Make Ion::Events::Journal optional

This commit is contained in:
Romain Goyet
2020-09-17 15:59:07 -04:00
committed by Léa Saviot
parent 6d18c33068
commit 2bee7eb267
3 changed files with 14 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ enum class ShiftAlphaStatus {
// Timeout is decremented
Event getEvent(int * timeout);
#if ION_EVENTS_JOURNAL
class Journal {
public:
virtual void pushEvent(Event e) = 0;
@@ -62,6 +63,7 @@ public:
void replayFrom(Journal * l);
void logTo(Journal * l);
#endif
ShiftAlphaStatus shiftAlphaStatus();
void setShiftAlphaStatus(ShiftAlphaStatus s);