this only changes line endings. inspect this commit with command `git
show <commit-sha> --ignore-space-at-eol` and it will tell you that the
commit appears to be "empty" (since all changes are whitespace changes
near the end of a line, which are ignored in that git show command).
the files to be changed were found and updated using this command:
find lib src include webapp/src -type f | \
xargs grep --binary-files=without-match --files-with-matches \
$(printf '\r\n') | xargs dos2unix
the following files were restored afterwards, as they are using CRLF
line endings in the upstream as well:
- lib/CMT2300a/cmt2300a_defs.h
- lib/README
- include/README
19 lines
541 B
C++
19 lines
541 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include <ESPAsyncWebServer.h>
|
|
#include <TaskSchedulerDeclarations.h>
|
|
#include <AsyncJson.h>
|
|
|
|
class WebApiHuaweiClass {
|
|
public:
|
|
void init(AsyncWebServer& server, Scheduler& scheduler);
|
|
void getJsonData(JsonVariant& root);
|
|
private:
|
|
void onStatus(AsyncWebServerRequest* request);
|
|
void onAdminGet(AsyncWebServerRequest* request);
|
|
void onAdminPost(AsyncWebServerRequest* request);
|
|
void onPost(AsyncWebServerRequest* request);
|
|
|
|
AsyncWebServer* _server;
|
|
}; |