From 352b9928cad722ecba39650c0969729c03fc926f Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 9 May 2020 15:47:51 -0500 Subject: [PATCH] Add file headers to network files and some minor code cleanup --- NetworkClient.cpp | 8 ++++++++ NetworkClient.h | 8 ++++++++ NetworkProtocol.h | 15 ++++++++------- NetworkServer.cpp | 8 ++++++++ NetworkServer.h | 8 ++++++++ main.cpp | 2 -- 6 files changed, 40 insertions(+), 9 deletions(-) diff --git a/NetworkClient.cpp b/NetworkClient.cpp index 514316ea..9bf10c73 100644 --- a/NetworkClient.cpp +++ b/NetworkClient.cpp @@ -1,3 +1,11 @@ +/*-----------------------------------------*\ +| NetworkClient.cpp | +| | +| Client code for OpenRGB SDK | +| | +| Adam Honse (CalcProgrammer1) 5/9/2020 | +\*-----------------------------------------*/ + #include "NetworkClient.h" #include "RGBController_Network.h" #include diff --git a/NetworkClient.h b/NetworkClient.h index b5dbca24..79e78ec9 100644 --- a/NetworkClient.h +++ b/NetworkClient.h @@ -1,3 +1,11 @@ +/*-----------------------------------------*\ +| NetworkClient.h | +| | +| Client header for OpenRGB SDK | +| | +| Adam Honse (CalcProgrammer1) 5/9/2020 | +\*-----------------------------------------*/ + #include "RGBController.h" #include "NetworkProtocol.h" #include "net_port.h" diff --git a/NetworkProtocol.h b/NetworkProtocol.h index daaab366..4286c92a 100644 --- a/NetworkProtocol.h +++ b/NetworkProtocol.h @@ -1,3 +1,11 @@ +/*-----------------------------------------*\ +| NetworkProtocol.h | +| | +| Protocol header for OpenRGB SDK | +| | +| Adam Honse (CalcProgrammer1) 5/9/2020 | +\*-----------------------------------------*/ + #pragma once typedef struct NetPacketHeader @@ -29,10 +37,3 @@ enum NET_PACKET_ID_RGBCONTROLLER_SETCUSTOMMODE = 1100, /* RGBController::SetCustomMode() */ NET_PACKET_ID_RGBCONTROLLER_UPDATEMODE = 1101, /* RGBController::UpdateMode() */ }; - -NetPacketHeader * InitNetPacketHeader - ( - unsigned int pkt_dev_idx, - unsigned int pkt_id, - unsigned int pkt_size - ); diff --git a/NetworkServer.cpp b/NetworkServer.cpp index 36e6bd84..4a928a5f 100644 --- a/NetworkServer.cpp +++ b/NetworkServer.cpp @@ -1,3 +1,11 @@ +/*-----------------------------------------*\ +| NetworkServer.cpp | +| | +| Server code for OpenRGB SDK | +| | +| Adam Honse (CalcProgrammer1) 5/9/2020 | +\*-----------------------------------------*/ + #include "NetworkServer.h" #include diff --git a/NetworkServer.h b/NetworkServer.h index 222ee49e..235df65c 100644 --- a/NetworkServer.h +++ b/NetworkServer.h @@ -1,3 +1,11 @@ +/*-----------------------------------------*\ +| NetworkServer.h | +| | +| Server header for OpenRGB SDK | +| | +| Adam Honse (CalcProgrammer1) 5/9/2020 | +\*-----------------------------------------*/ + #include "RGBController.h" #include "NetworkProtocol.h" #include "net_port.h" diff --git a/main.cpp b/main.cpp index c7f59eaa..3045df22 100644 --- a/main.cpp +++ b/main.cpp @@ -6,7 +6,6 @@ * * \******************************************************************************************/ -#include "NetworkClient.h" #include "NetworkServer.h" #include "OpenRGB.h" #include "ProfileManager.h" @@ -47,7 +46,6 @@ int main(int argc, char* argv[]) } NetworkServer server(rgb_controllers); - //NetworkClient client(rgb_controllers); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv);