Skip to content

Commit

Permalink
Fixed compile after name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed May 13, 2024
1 parent c089318 commit e8b8908
Show file tree
Hide file tree
Showing 40 changed files with 59 additions and 64 deletions.
25 changes: 12 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ if (WIN32)
src/vscp/common/canaldlldef.h
src/vscp/common/vscpcanaldeviceif.h
src/vscp/common/vscpcanaldeviceif.cpp
src/vscp/common/canal_xmlconfig.h
src/vscp/common/canal_xmlconfig.cpp
src/vscp/common/vscp_client_base.h
src/vscp/common/vscp_client_base.cpp
src/vscp/common/vscp_client_mqtt.h
src/vscp/common/vscp_client_mqtt.cpp
src/vscp/common/canal-xmlconfig.h
src/vscp/common/canal-xmlconfig.cpp
src/vscp/common/vscp-client-base.h
src/vscp/common/vscp-client-base.cpp
src/vscp/common/vscp-client-mqtt.h
src/vscp/common/vscp-client-mqtt.cpp
./third_party/mustache/mustache.hpp
./third_party/sqlite3/sqlite3.h
./third_party/sqlite3/sqlite3.c
Expand Down Expand Up @@ -323,12 +323,12 @@ else()
src/vscp/common/canaldlldef.h
src/vscp/common/vscpcanaldeviceif.h
src/vscp/common/vscpcanaldeviceif.cpp
src/vscp/common/canal_xmlconfig.h
src/vscp/common/canal_xmlconfig.cpp
src/vscp/common/vscp_client_base.h
src/vscp/common/vscp_client_base.cpp
src/vscp/common/vscp_client_mqtt.h
src/vscp/common/vscp_client_mqtt.cpp
src/vscp/common/canal-xmlconfig.h
src/vscp/common/canal-xmlconfig.cpp
src/vscp/common/vscp-client-base.h
src/vscp/common/vscp-client-base.cpp
src/vscp/common/vscp-client-mqtt.h
src/vscp/common/vscp-client-mqtt.cpp
./third_party/mustache/mustache.hpp
./third_party/sqlite3/sqlite3.h
./third_party/sqlite3/sqlite3.c
Expand Down Expand Up @@ -400,7 +400,6 @@ if(MSVC)
OpenSSL::SSL
OpenSSL::Crypto
OpenSSL::SSL OpenSSL::Crypto
# websockets_shared
${MOSQUITTO_LIBRARIES}
${LIBWEBSOCKETS_LIBRARIES}
expat::expat
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/canal-xmlconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "vscp.h"
#include "vscphelper.h"

#include "canal_xmlconfig.h"
#include "canal-xmlconfig.h"

#include <limits>
#include <cfloat>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <guid.h>
#include <vscp.h>
#include <vscphelper.h>
#include <vscp_client_mqtt.h>
#include <vscp-client-mqtt.h>

#include <stdlib.h>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-bootdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#include "guid.h"
#include "mdf.h"
#include "register.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

#include <list>

Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <list>
#include <string>

#include "vscp_client_base.h"
#include "vscp-client-base.h"

///////////////////////////////////////////////////////////////////////////////
// CVscpClient
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-canal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <pthread.h>

#include "vscp_client_canal.h"
#include "vscp-client-canal.h"
#include "vscphelper.h"


Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-canal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define VSCPCLIENTCANAL_H__INCLUDED_

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"
#include "vscpcanaldeviceif.h"

#include <pthread.h>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-level2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <vscp_class.h>
#include <vscp_type.h>
#include <vscphelper.h>
#include "vscp_client_level2.h"
#include "vscp-client-level2.h"

#include <string>
#include <list>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <pch.h>
#endif

#include "vscp_client_mqtt.h"
#include "vscp-client-mqtt.h"

#include <pthread.h>
#ifndef WIN32
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mqtt-options/protocol-version can be set to 310/311/500
#if !defined(VSCPCLIENTMQTT_H__INCLUDED_)
#define VSCPCLIENTMQTT_H__INCLUDED_

#include "vscp_client_base.h"
#include "vscp-client-base.h"
#include <guid.h>
#include <vscp.h>
#include <vscphelper.h>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-multicast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif

#include "vscphelper.h"
#include "vscp_client_multicast.h"
#include "vscp-client-multicast.h"

///////////////////////////////////////////////////////////////////////////////
// CTor
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-multicast.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define VSCPCLIENTMULTICAST_H__INCLUDED_

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

class vscpClientMulticast : public CVscpClient {

Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-rawcan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <pch.h>
#endif

#include "vscp_client_rawcan.h"
#include "vscp-client-rawcan.h"
#include "vscphelper.h"

///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-rawcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define VSCPCLIENTRAWCAN_H__INCLUDED_

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

class vscpClientRawCan : public CVscpClient
{
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-rawmqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif

#include "vscphelper.h"
#include "vscp_client_rawmqtt.h"
#include "vscp-client-rawmqtt.h"

///////////////////////////////////////////////////////////////////////////////
// CTor
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-rawmqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define VSCPCLIENTRAWMQTT_H__INCLUDED_

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

class vscpClientRawMqtt : public CVscpClient
{
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-socketcan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

#include <expat.h>

#include "vscp_client_socketcan.h"
#include "vscp-client-socketcan.h"
#include <guid.h>
#include <vscp.h>
#include <vscp_class.h>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <pch.h>
#endif

#include "vscp_client_tcp.h"
#include "vscp-client-tcp.h"

void
workerThread(vscpClientTcp *pObj);
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if !defined(VSCPCLIENTTCP_H__INCLUDED_)
#define VSCPCLIENTTCP_H__INCLUDED_

#include "vscp_client_base.h"
#include "vscp-client-base.h"
#include <vscpremotetcpif.h>

#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif

#include "vscphelper.h"
#include "vscp_client_udp.h"
#include "vscp-client-udp.h"

///////////////////////////////////////////////////////////////////////////////
// CTor
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define VSCPCLIENTUDP_H__INCLUDED_

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

class vscpClientUdp : public CVscpClient {

Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <vscphelper.h>
// #include "civetweb.h"

#include "vscp_client_ws1.h"
#include "vscp-client-ws1.h"

/*
static int
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws1.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#endif

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"

const uint32_t WS1_CONNECTION_TIMEOUT = 30000;
const uint32_t WS1_RESPONSE_TIMEOUT = 2000;
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <vscphelper.h>
// #include "civetweb.h"

#include "vscp_client_ws2.h"
#include "vscp-client-ws2.h"

#include <nlohmann/json.hpp> // Needs C++11 -std=c++11

Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws2.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#endif

#include "vscp.h"
#include "vscp_client_base.h"
#include "vscp-client-base.h"
#include <nlohmann/json.hpp>

const uint32_t WS2_CONNECTION_TIMEOUT = 30000;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/vscp/common/vscpcanaldeviceif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <nlohmann/json.hpp> // Needs C++11 -std=c++11

#include <canal.h>
#include <canal_macro.h>
#include <canal-macro.h>
#include <canaldlldef.h>
#include <vscp.h>
#include <vscpcanaldeviceif.h>
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscphelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include <expat.h>
#include <nlohmann/json.hpp>

#include <canal_macro.h>
#include <canal-macro.h>
#include <crc.h>
#include <crc8.h>
#include <vscp_aes.h>
Expand Down
6 changes: 3 additions & 3 deletions src/vscp/daemon/controlobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
#include <randpassword.h>
#include <version.h>
#include <vscp.h>
#include <vscp_client_mqtt.h>
#include <vscp_debug.h>
#include <vscpd_caps.h>
#include <vscp-client-mqtt.h>
#include <vscp-debug.h>
#include <vscpd-caps.h>
#include <vscphelper.h>

#include <algorithm>
Expand Down
4 changes: 2 additions & 2 deletions src/vscp/daemon/devicelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
#include <devicethread.h>
#include <guid.h>
#include <vscp.h>
#include <vscp_client_mqtt.h>
#include <vscp_debug.h>
#include <vscp-client-mqtt.h>
#include <vscp-debug.h>
#include <vscphelper.h>

#include <nlohmann/json.hpp> // Needs C++11 -std=c++11
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/daemon/devicelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <canaldlldef.h>
#include <vscp.h>
#include <vscp_client_mqtt.h>
#include <vscp-client-mqtt.h>
//#include <devicethread.h>
#include <guid.h>
#include <level2drvdef.h>
Expand Down
20 changes: 8 additions & 12 deletions src/vscp/daemon/devicethread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@

#include "devicethread.h"

#include <canal_macro.h>
#include <canal-macro.h>
#include <controlobject.h>
#include <devicelist.h>
#include <level2drvdef.h>
#include <vscp.h>
#include <vscp_debug.h>
#include <vscp-debug.h>
#include <vscphelper.h>

#include <mustache.hpp>
Expand All @@ -81,27 +81,23 @@ extern uint64_t gDebugLevel;
//

static void
receive_event_callback(vscpEvent *pev, void *pobj)
receive_event_callback(vscpEvent &ev, void *pobj)
{
int rv;

// Check pointers
if (nullptr == pev) {
return;
}

if (nullptr == pobj) {
return;
}

CDeviceItem *pDeviceItem = (CDeviceItem *) pobj;

spdlog::trace("VSCP Event received. class={0} type={1}", pev->vscp_class, pev->vscp_type);
spdlog::trace("VSCP Event received. class={0} type={1}", ev.vscp_class, ev.vscp_type);

if (VSCP_DRIVER_LEVEL1 == pDeviceItem->m_driverLevel) {

canalMsg msg;
vscp_convertEventToCanal(&msg, pev);
vscp_convertEventToCanal(&msg, &ev);

// Use blocking method if available
if (nullptr != pDeviceItem->m_proc_CanalBlockingSend) {
Expand All @@ -121,7 +117,7 @@ receive_event_callback(vscpEvent *pev, void *pobj)
}
}
else if (VSCP_DRIVER_LEVEL2 == pDeviceItem->m_driverLevel) {
if (CANAL_ERROR_SUCCESS != pDeviceItem->m_proc_VSCPWrite(pDeviceItem->m_openHandle, pev, 500)) {
if (CANAL_ERROR_SUCCESS != pDeviceItem->m_proc_VSCPWrite(pDeviceItem->m_openHandle, &ev, 500)) {
spdlog::error("driver: mqtt_on_message - Failed to send level II event.");
}
}
Expand Down Expand Up @@ -406,7 +402,7 @@ deviceThread(void *pData)
&pDeviceItem->m_pCtrlObj->m_map_type_id2Token);

// Set event callback
pDeviceItem->m_mqttClient.setCallback(receive_event_callback, pDeviceItem);
pDeviceItem->m_mqttClient.setCallbackEv(receive_event_callback, pDeviceItem);

// Connect to server
if (VSCP_ERROR_SUCCESS != pDeviceItem->m_mqttClient.connect()) {
Expand Down Expand Up @@ -687,7 +683,7 @@ deviceThread(void *pData)
&pDeviceItem->m_pCtrlObj->m_map_type_id2Token);

// Set event callback
pDeviceItem->m_mqttClient.setCallback(receive_event_callback);
pDeviceItem->m_mqttClient.setCallbackEv(receive_event_callback);

// Connect to server
if (VSCP_ERROR_SUCCESS != pDeviceItem->m_mqttClient.connect()) {
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/daemon/vscpd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#endif

#include "canal_macro.h"
#include "canal-macro.h"
#include "vscpd.h"
#include "controlobject.h"
#include <crc.h>
Expand Down
Loading

0 comments on commit e8b8908

Please sign in to comment.