2828
2929using namespace Nemea ;
3030
31- std::atomic<bool > g_stopFlag (false );
31+ static std::atomic<bool > g_stopFlag (false );
3232
33- void signalHandler (int signum)
33+ static void signalHandler (int signum)
3434{
3535 Nm::loggerGet (" signalHandler" )->info (" Interrupt signal {} received" , signum);
3636 g_stopFlag.store (true );
@@ -44,7 +44,7 @@ void signalHandler(int signum)
4444 *
4545 * @param biInterface Bidirectional interface for Unirec communication.
4646 */
47- void handleFormatChange (UnirecBidirectionalInterface& biInterface)
47+ static void handleFormatChange (UnirecBidirectionalInterface& biInterface)
4848{
4949 biInterface.changeTemplate ();
5050}
@@ -54,7 +54,7 @@ void handleFormatChange(UnirecBidirectionalInterface& biInterface)
5454 *
5555 * @param biInterface Bidirectional interface for Unirec communication.
5656 */
57- void processNextRecord (UnirecBidirectionalInterface& biInterface)
57+ static void processNextRecord (UnirecBidirectionalInterface& biInterface)
5858{
5959 std::optional<UnirecRecordView> unirecRecord = biInterface.receive ();
6060 if (!unirecRecord) {
@@ -72,7 +72,7 @@ void processNextRecord(UnirecBidirectionalInterface& biInterface)
7272 *
7373 * @param biInterface Bidirectional interface for Unirec communication.
7474 */
75- void processUnirecRecords (UnirecBidirectionalInterface& biInterface)
75+ static void processUnirecRecords (UnirecBidirectionalInterface& biInterface)
7676{
7777 while (!g_stopFlag.load ()) {
7878 try {
@@ -87,7 +87,7 @@ void processUnirecRecords(UnirecBidirectionalInterface& biInterface)
8787 }
8888}
8989
90- std::pair<std::string, std::string> splitPluginParams (const std::string& pluginParams)
90+ static std::pair<std::string, std::string> splitPluginParams (const std::string& pluginParams)
9191{
9292 const std::size_t position = pluginParams.find_first_of (' :' );
9393 if (position == std::string::npos) {
@@ -99,7 +99,7 @@ std::pair<std::string, std::string> splitPluginParams(const std::string& pluginP
9999 std::string (pluginParams, position + 1 ));
100100}
101101
102- void showOutputPluginUsage ()
102+ static void showOutputPluginUsage ()
103103{
104104 auto & outputPluginFactory = Nm::PluginFactory<
105105 TelemetryStats::OutputPlugin,
0 commit comments