mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Clean up baseband processors to each have a main().
This commit is contained in:
parent
c8ffea0098
commit
fe1a6c09bb
@ -98,7 +98,6 @@ set(CSRC
|
||||
# setting.
|
||||
set(CPPSRC
|
||||
baseband.cpp
|
||||
main.cpp
|
||||
${COMMON}/message_queue.cpp
|
||||
${COMMON}/event.cpp
|
||||
event_m4.cpp
|
||||
|
@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Jared Boone, ShareBrained Technology, Inc.
|
||||
*
|
||||
* This file is part of PortaPack.
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
extern void run();
|
||||
|
||||
int main(void) {
|
||||
run();
|
||||
return 0;
|
||||
}
|
@ -65,7 +65,8 @@ void AISProcessor::payload_handler(
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<AISProcessor>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -108,7 +108,8 @@ void NarrowbandAMAudio::capture_config(const CaptureConfigMessage& message) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<NarrowbandAMAudio>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -93,7 +93,8 @@ void CaptureProcessor::capture_config(const CaptureConfigMessage& message) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<CaptureProcessor>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ void ERTProcessor::idm_handler(
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<ERTProcessor>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -96,7 +96,8 @@ void NarrowbandFMAudio::capture_config(const CaptureConfigMessage& message) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<NarrowbandFMAudio>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -58,7 +58,8 @@ void TPMSProcessor::execute(const buffer_c8_t& buffer) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<TPMSProcessor>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -125,7 +125,8 @@ void WidebandFMAudio::capture_config(const CaptureConfigMessage& message) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<WidebandFMAudio>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
@ -73,7 +73,8 @@ void WidebandSpectrum::on_message(const Message* const message) {
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
int main() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<WidebandSpectrum>() };
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user