Update Razer controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-07 11:27:32 -05:00
parent 16bc33c18a
commit d2d342ade7
6 changed files with 69 additions and 36 deletions

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| RGBController_Razer.cpp |
| |
| RGBController for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 22 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_Razer.h"
#include "RazerDevices.h"
#include "LogManager.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\
| RGBController_Razer.h |
| |
| Generic RGB Interface for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 1/22/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_Razer.h |
| |
| RGBController for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 22 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RazerController.h"

View file

@ -1,7 +1,17 @@
#include "RGBController_RazerAddressable.h"
#include "RazerDevices.h"
/*---------------------------------------------------------*\
| RGBController_RazerAddressable.cpp |
| |
| RGBController for Razer ARGB Controller |
| |
| Adam Honse (CalcProgrammer1) 11 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "RGBController_RazerAddressable.h"
#include "RazerDevices.h"
/**------------------------------------------------------------------*\
@name Razer ARGB

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\
| RGBController_RazerAddressable.h |
| |
| Generic RGB Interface for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 4/11/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RazerAddressable.h |
| |
| RGBController for Razer ARGB Controller |
| |
| Adam Honse (CalcProgrammer1) 11 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RazerController.h"
@ -30,7 +34,7 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\
| RazerController.cpp |
| |
| Driver for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 1/22/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RazerController.cpp |
| |
| Driver for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 22 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "RazerController.h"
#include "RazerDevices.h"
#include "LogManager.h"
#include <string.h>
using namespace std::chrono_literals;
RazerController::RazerController(hid_device* dev_handle, hid_device* dev_argb_handle, const char* path, unsigned short pid, std::string dev_name)

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\
| RazerController.h |
| |
| Definitions and types for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 1/22/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RazerController.h |
| |
| Driver for Razer devices |
| |
| Adam Honse (CalcProgrammer1) 22 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
/*---------------------------------------------------------*\
| Struct packing macro for GCC and MSVC |