aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.h
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2012-08-15 16:32:54 +0200
committerMatthias P. Braendli (think) <matthias@mpb.li>2012-08-15 16:32:54 +0200
commit6603a0b62b22cefbc1ceed00739230e6ccc4a8d9 (patch)
treecf660eb14e53d1e5b67d7bb5c7f1336002a06e89 /src/OutputUHD.h
parentbb1fe8fe2ce76eda4c8e9fdfae3a0e409bad2840 (diff)
downloaddabmod-6603a0b62b22cefbc1ceed00739230e6ccc4a8d9.tar.gz
dabmod-6603a0b62b22cefbc1ceed00739230e6ccc4a8d9.tar.bz2
dabmod-6603a0b62b22cefbc1ceed00739230e6ccc4a8d9.zip
crc-dabmod: added syslog support
Diffstat (limited to 'src/OutputUHD.h')
-rw-r--r--src/OutputUHD.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h
index d460af4..23d0e4c 100644
--- a/src/OutputUHD.h
+++ b/src/OutputUHD.h
@@ -45,6 +45,7 @@ DESCRIPTION:
#include <boost/thread/barrier.hpp>
#include <boost/shared_ptr.hpp>
+#include "Log.h"
#include "ModOutput.h"
#include "EtiReader.h"
#include "TimestampDecoder.h"
@@ -100,6 +101,9 @@ struct UHDWorkerData {
// A barrier to synchronise the two threads
shared_ptr<barrier> sync_barrier;
+
+ // The common logger
+ Logger* logger;
};
@@ -134,8 +138,13 @@ class UHDWorker {
class OutputUHD: public ModOutput {
public:
- OutputUHD(const char* device, unsigned sampleRate, double frequency, int txgain,
- bool enableSync, bool muteNoTimestamps);
+ OutputUHD(const char* device,
+ unsigned sampleRate,
+ double frequency,
+ int txgain,
+ bool enableSync,
+ bool muteNoTimestamps,
+ Logger& logger);
~OutputUHD();
int process(Buffer* dataIn, Buffer* dataOut);
@@ -147,6 +156,7 @@ class OutputUHD: public ModOutput {
}
protected:
+ Logger& myLogger;
EtiReader *myEtiReader;
std::string myDevice;
unsigned mySampleRate;