diff options
author | Stefan Pöschel <github@basicmaster.de> | 2018-02-16 13:48:42 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2018-02-16 13:48:42 +0100 |
commit | f2c65be1036bb5d7310c4a8714e14bb4496efebb (patch) | |
tree | 10a2d430ed112edb52419652d5060a24e2ea23ea /src/sls.h | |
parent | 6d7667155dca929544fbcc362286df2618ed60d0 (diff) | |
download | ODR-PadEnc-f2c65be1036bb5d7310c4a8714e14bb4496efebb.tar.gz ODR-PadEnc-f2c65be1036bb5d7310c4a8714e14bb4496efebb.tar.bz2 ODR-PadEnc-f2c65be1036bb5d7310c4a8714e14bb4496efebb.zip |
SLS: add support to request slides dir re-read
A re-read of the slides dir can now be requested by storing a file named
`REQUEST_SLIDES_DIR_REREAD` into the slides dir. When the next slide is
going to be encoded and this file is present, the slides dir is re-read
and this file is deleted.
Diffstat (limited to 'src/sls.h')
-rw-r--r-- | src/sls.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,7 @@ Copyright (C) 2014, 2015 Matthias P. Braendli (http://opendigitalradio.org) - Copyright (C) 2015, 2016, 2017 Stefan Pöschel (http://opendigitalradio.org) + Copyright (C) 2015, 2016, 2017, 2018 Stefan Pöschel (http://opendigitalradio.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -196,6 +196,7 @@ public: bool InitFromDir(const std::string& dir); bool Empty() {return slides.empty();} + void Clear() {slides.clear();} slide_metadata_t GetSlide(); }; @@ -247,6 +248,7 @@ private: public: static const int APPTYPE_MOT_START; static const int APPTYPE_MOT_CONT; + static const std::string REQUEST_REREAD_FILENAME; SLSEncoder(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), cindex_header(0), cindex_body(0) {} |