Windows: MSVC2017: changes in sdrbase (2)

This commit is contained in:
f4exb 2018-11-12 16:58:20 +01:00
parent f97728c4e9
commit 70a4db39c0
9 changed files with 186 additions and 96 deletions

View File

@ -18,7 +18,6 @@
#include "audionetsink.h" #include "audionetsink.h"
#include "util/rtpsink.h" #include "util/rtpsink.h"
#include <unistd.h>
#include <QUdpSocket> #include <QUdpSocket>
const int AudioNetSink::m_udpBlockSize = 512; const int AudioNetSink::m_udpBlockSize = 512;

View File

@ -37,7 +37,6 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <memory.h> #include <memory.h>
#include <dsp/misc.h> #include <dsp/misc.h>

View File

@ -68,8 +68,9 @@ void FileRecord::genUniqueFileName(uint deviceUID)
setFileName(QString("rec%1_%2.sdriq").arg(deviceUID).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz"))); setFileName(QString("rec%1_%2.sdriq").arg(deviceUID).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz")));
} }
void FileRecord::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly __attribute__((unused))) void FileRecord::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly)
{ {
(void) positiveOnly;
// if no recording is active, send the samples to /dev/null // if no recording is active, send the samples to /dev/null
if(!m_recordOn) if(!m_recordOn)
return; return;
@ -173,4 +174,4 @@ void FileRecord::writeHeader(std::ofstream& sampleFile, Header& header)
crc32.process_bytes(&header, 28); crc32.process_bytes(&header, 28);
header.crc32 = crc32.checksum(); header.crc32 = crc32.checksum();
sampleFile.write((const char *) &header, sizeof(Header)); sampleFile.write((const char *) &header, sizeof(Header));
} }

View File

@ -76,8 +76,12 @@ private:
IIRFilter<float, 2> m_filterLP; IIRFilter<float, 2> m_filterLP;
IIRFilter<float, 2> m_filterHP; IIRFilter<float, 2> m_filterHP;
bool m_useHP; bool m_useHP;
static const float m_lpa[3], m_lpb[3]; // low pass coefficients // low pass coefficients
static const float m_hpa[3], m_hpb[3]; // band pass coefficients static const float m_lpa[3];
static const float m_lpb[3];
// band pass coefficients
static const float m_hpa[3];
static const float m_hpb[3];
}; };

View File

@ -17,8 +17,11 @@ bool NullSink::init(const Message& message)
return false; return false;
} }
void NullSink::feed(const SampleVector::const_iterator& begin __attribute__((unused)), const SampleVector::const_iterator& end __attribute__((unused)), bool positiveOnly __attribute__((unused))) void NullSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly)
{ {
(void) begin;
(void) end;
(void) positiveOnly;
} }
void NullSink::start() void NullSink::start()
@ -29,7 +32,8 @@ void NullSink::stop()
{ {
} }
bool NullSink::handleMessage(const Message& message __attribute__((unused))) bool NullSink::handleMessage(const Message& message)
{ {
(void) message;
return false; return false;
} }

View File

@ -111,8 +111,9 @@ void ThreadedBasebandSampleSink::stop()
m_thread->wait(); m_thread->wait();
} }
void ThreadedBasebandSampleSink::feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly __attribute__((unused))) void ThreadedBasebandSampleSink::feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly)
{ {
(void) positiveOnly;
//m_sampleSink->feed(begin, end, positiveOnly); //m_sampleSink->feed(begin, end, positiveOnly);
//m_sampleFifo.write(begin, end); //m_sampleFifo.write(begin, end);
m_threadedBasebandSampleSinkFifo->writeToFifo(begin, end); m_threadedBasebandSampleSinkFifo->writeToFifo(begin, end);

View File

@ -224,7 +224,9 @@ HEADERS += audio/audiodevicemanager.h\
webapi/webapiserver.h\ webapi/webapiserver.h\
mainparser.h mainparser.h
!macx:LIBS += -L../serialdv/$${build_subdir} -lserialdv MINGW32 || MINGW64 {
LIBS += -L../serialdv/$${build_subdir} -lserialdv
}
LIBS += -L../httpserver/$${build_subdir} -lhttpserver LIBS += -L../httpserver/$${build_subdir} -lhttpserver
LIBS += -L../qrtplib/$${build_subdir} -lqrtplib LIBS += -L../qrtplib/$${build_subdir} -lqrtplib
LIBS += -L../swagger/$${build_subdir} -lswagger LIBS += -L../swagger/$${build_subdir} -lswagger

View File

@ -23,7 +23,7 @@
#include <QHostInfo> #include <QHostInfo>
#include <QCryptographicHash> #include <QCryptographicHash>
#ifdef _WIN32_ #if (defined _WIN32_) || (defined _MSC_VER)
#include <windows.h> #include <windows.h>
#else #else
#include <sys/time.h> #include <sys/time.h>
@ -67,7 +67,7 @@ uint32_t UidCalculator::getNewInstanceId()
uint64_t UidCalculator::getCurrentMiroseconds() uint64_t UidCalculator::getCurrentMiroseconds()
{ {
#ifdef _WIN32_ #if (defined _WIN32_) || (defined _MSC_VER)
LARGE_INTEGER tickPerSecond; LARGE_INTEGER tickPerSecond;
LARGE_INTEGER tick; // a point in time LARGE_INTEGER tick; // a point in time

View File

@ -64,9 +64,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceSummary( virtual int instanceSummary(
SWGSDRangel::SWGInstanceSummaryResponse& response __attribute__((unused)), SWGSDRangel::SWGInstanceSummaryResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -77,9 +78,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDelete( virtual int instanceDelete(
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -90,10 +92,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDevices( virtual int instanceDevices(
bool tx __attribute__((unused)), bool tx,
SWGSDRangel::SWGInstanceDevicesResponse& response __attribute__((unused)), SWGSDRangel::SWGInstanceDevicesResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) tx;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -104,10 +108,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceChannels( virtual int instanceChannels(
bool tx __attribute__((unused)), bool tx,
SWGSDRangel::SWGInstanceChannelsResponse& response __attribute__((unused)), SWGSDRangel::SWGInstanceChannelsResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) tx;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -118,9 +124,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceLoggingGet( virtual int instanceLoggingGet(
SWGSDRangel::SWGLoggingInfo& response __attribute__((unused)), SWGSDRangel::SWGLoggingInfo& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -131,10 +138,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceLoggingPut( virtual int instanceLoggingPut(
SWGSDRangel::SWGLoggingInfo& query __attribute__((unused)), SWGSDRangel::SWGLoggingInfo& query,
SWGSDRangel::SWGLoggingInfo& response __attribute__((unused)), SWGSDRangel::SWGLoggingInfo& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -145,9 +154,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioGet( virtual int instanceAudioGet(
SWGSDRangel::SWGAudioDevices& response __attribute__((unused)), SWGSDRangel::SWGAudioDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -158,10 +168,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioInputPatch( virtual int instanceAudioInputPatch(
SWGSDRangel::SWGAudioInputDevice& response __attribute__((unused)), SWGSDRangel::SWGAudioInputDevice& response,
const QStringList& audioInputKeys __attribute__((unused)), const QStringList& audioInputKeys,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
(void) audioInputKeys;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -172,10 +184,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioOutputPatch( virtual int instanceAudioOutputPatch(
SWGSDRangel::SWGAudioOutputDevice& response __attribute__((unused)), SWGSDRangel::SWGAudioOutputDevice& response,
const QStringList& audioOutputKeys __attribute__((unused)), const QStringList& audioOutputKeys,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
(void) audioOutputKeys;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -186,9 +200,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioInputDelete( virtual int instanceAudioInputDelete(
SWGSDRangel::SWGAudioInputDevice& response __attribute__((unused)), SWGSDRangel::SWGAudioInputDevice& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -199,9 +214,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioOutputDelete( virtual int instanceAudioOutputDelete(
SWGSDRangel::SWGAudioOutputDevice& response __attribute__((unused)), SWGSDRangel::SWGAudioOutputDevice& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -212,9 +228,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioInputCleanupPatch( virtual int instanceAudioInputCleanupPatch(
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -225,9 +242,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAudioOutputCleanupPatch( virtual int instanceAudioOutputCleanupPatch(
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -238,9 +256,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceLocationGet( virtual int instanceLocationGet(
SWGSDRangel::SWGLocationInformation& response __attribute__((unused)), SWGSDRangel::SWGLocationInformation& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -251,9 +270,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceLocationPut( virtual int instanceLocationPut(
SWGSDRangel::SWGLocationInformation& response __attribute__((unused)), SWGSDRangel::SWGLocationInformation& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -264,9 +284,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDVSerialGet( virtual int instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response __attribute__((unused)), SWGSDRangel::SWGDVSeralDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -277,10 +298,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDVSerialPatch( virtual int instanceDVSerialPatch(
bool dvserial __attribute__((unused)), bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response __attribute__((unused)), SWGSDRangel::SWGDVSeralDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) dvserial;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -291,9 +314,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetsGet( virtual int instancePresetsGet(
SWGSDRangel::SWGPresets& response __attribute__((unused)), SWGSDRangel::SWGPresets& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -304,10 +328,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetPatch( virtual int instancePresetPatch(
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)), SWGSDRangel::SWGPresetTransfer& query,
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -318,10 +344,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetPut( virtual int instancePresetPut(
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)), SWGSDRangel::SWGPresetTransfer& query,
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -332,10 +360,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetPost( virtual int instancePresetPost(
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)), SWGSDRangel::SWGPresetTransfer& query,
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -346,9 +376,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetDelete( virtual int instancePresetDelete(
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -359,10 +390,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetFilePut( virtual int instancePresetFilePut(
SWGSDRangel::SWGPresetImport& query __attribute__((unused)), SWGSDRangel::SWGPresetImport& query,
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -373,10 +406,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instancePresetFilePost( virtual int instancePresetFilePost(
SWGSDRangel::SWGPresetExport& query __attribute__((unused)), SWGSDRangel::SWGPresetExport& query,
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)), SWGSDRangel::SWGPresetIdentifier& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -387,9 +422,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDeviceSetsGet( virtual int instanceDeviceSetsGet(
SWGSDRangel::SWGDeviceSetList& response __attribute__((unused)), SWGSDRangel::SWGDeviceSetList& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -400,10 +436,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDeviceSetPost( virtual int instanceDeviceSetPost(
bool tx __attribute__((unused)), bool tx,
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) tx;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -414,9 +452,10 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceDeviceSetDelete( virtual int instanceDeviceSetDelete(
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -427,10 +466,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetGet( virtual int devicesetGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceSet& response __attribute__((unused)), SWGSDRangel::SWGDeviceSet& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -441,10 +482,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetFocusPatch( virtual int devicesetFocusPatch(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -455,11 +498,14 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDevicePut( virtual int devicesetDevicePut(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceListItem& query __attribute__((unused)), SWGSDRangel::SWGDeviceListItem& query,
SWGSDRangel::SWGDeviceListItem& response __attribute__((unused)), SWGSDRangel::SWGDeviceListItem& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) query;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -470,10 +516,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceSettingsGet( virtual int devicesetDeviceSettingsGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceSettings& response __attribute__((unused)), SWGSDRangel::SWGDeviceSettings& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -484,12 +532,16 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceSettingsPutPatch( virtual int devicesetDeviceSettingsPutPatch(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
bool force __attribute__((unused)), //!< true to force settings = put else patch bool force, //!< true to force settings = put else patch
const QStringList& channelSettingsKeys __attribute__((unused)), const QStringList& channelSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response __attribute__((unused)), SWGSDRangel::SWGDeviceSettings& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) force;
(void) channelSettingsKeys;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -500,10 +552,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceRunGet( virtual int devicesetDeviceRunGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceState& response __attribute__((unused)), SWGSDRangel::SWGDeviceState& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -514,10 +568,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceRunPost( virtual int devicesetDeviceRunPost(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceState& response __attribute__((unused)), SWGSDRangel::SWGDeviceState& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -528,11 +584,13 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceRunDelete( virtual int devicesetDeviceRunDelete(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceState& response __attribute__((unused)), SWGSDRangel::SWGDeviceState& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
error.init(); (void) deviceSetIndex;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
} }
@ -542,10 +600,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetDeviceReportGet( virtual int devicesetDeviceReportGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGDeviceReport& response __attribute__((unused)), SWGSDRangel::SWGDeviceReport& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -556,10 +616,12 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelsReportGet( virtual int devicesetChannelsReportGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGChannelsDetail& response __attribute__((unused)), SWGSDRangel::SWGChannelsDetail& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -570,12 +632,15 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelPost( virtual int devicesetChannelPost(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
SWGSDRangel::SWGChannelSettings& query __attribute__((unused)), SWGSDRangel::SWGChannelSettings& query,
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
error.init(); (void) deviceSetIndex;
(void) query;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
} }
@ -585,11 +650,15 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelDelete( virtual int devicesetChannelDelete(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
int channelIndex __attribute__((unused)), int channelIndex,
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)), SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error __attribute__((unused))) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) channelIndex;
(void) response;
(void) error;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
@ -600,12 +669,15 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelSettingsGet( virtual int devicesetChannelSettingsGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
int channelIndex __attribute__((unused)), int channelIndex,
SWGSDRangel::SWGChannelSettings& response __attribute__((unused)), SWGSDRangel::SWGChannelSettings& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
error.init(); (void) deviceSetIndex;
(void) channelIndex;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
} }
@ -615,14 +687,19 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelSettingsPutPatch( virtual int devicesetChannelSettingsPutPatch(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
int channelIndex __attribute__((unused)), int channelIndex,
bool force __attribute__((unused)), bool force,
const QStringList& channelSettingsKeys __attribute__((unused)), const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response __attribute__((unused)), SWGSDRangel::SWGChannelSettings& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
error.init(); (void) deviceSetIndex;
(void) channelIndex;
(void) force;
(void) channelSettingsKeys;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;
} }
@ -633,11 +710,14 @@ public:
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int devicesetChannelReportGet( virtual int devicesetChannelReportGet(
int deviceSetIndex __attribute__((unused)), int deviceSetIndex,
int channelIndex __attribute__((unused)), int channelIndex,
SWGSDRangel::SWGChannelReport& response __attribute__((unused)), SWGSDRangel::SWGChannelReport& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) deviceSetIndex;
(void) channelIndex;
(void) response;
error.init(); error.init();
*error.getMessage() = QString("Function not implemented"); *error.getMessage() = QString("Function not implemented");
return 501; return 501;