diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
commit | 70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f (patch) | |
tree | a21fb353a0b5bcdd89ae249feaf82c4715249cc3 /src/input/inputs.h | |
parent | 22df1554f5b6dabfd9c8bb18a0107c36a3cf2aac (diff) | |
download | dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.gz dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.bz2 dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.zip |
Make InputBase::open() return void
Diffstat (limited to 'src/input/inputs.h')
-rw-r--r-- | src/input/inputs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/inputs.h b/src/input/inputs.h index bfb1fb6..b823998 100644 --- a/src/input/inputs.h +++ b/src/input/inputs.h @@ -2,7 +2,7 @@ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2016 + Copyright (C) 2019 Matthias P. Braendli, matthias.braendli@mpb.li http://www.opendigitalradio.org @@ -38,7 +38,9 @@ namespace Inputs { /* New input object base */ class InputBase { public: - virtual int open(const std::string& name) = 0; + /* Throws runtime_error or invalid_argument on failure */ + virtual void open(const std::string& name) = 0; + virtual int readFrame(uint8_t* buffer, size_t size) = 0; virtual int setBitrate(int bitrate) = 0; virtual int close() = 0; |