Move common parts of API.

This commit is contained in:
XMRig 2018-04-13 07:12:53 +07:00
parent 51422f4b1e
commit a6b698d4eb
10 changed files with 17 additions and 17 deletions

View file

@ -214,14 +214,14 @@ if (WITH_HTTPD)
set(HTTPD_SOURCES
src/api/Api.h
src/api/ApiRouter.h
src/api/HttpBody.h
src/api/Httpd.h
src/api/HttpReply.h
src/api/HttpRequest.h
src/common/api/HttpBody.h
src/common/api/Httpd.h
src/common/api/HttpReply.h
src/common/api/HttpRequest.h
src/api/Api.cpp
src/api/ApiRouter.cpp
src/api/Httpd.cpp
src/api/HttpRequest.cpp
src/common/api/Httpd.cpp
src/common/api/HttpRequest.cpp
)
else()
message(FATAL_ERROR "microhttpd NOT found: use `-DWITH_HTTPD=OFF` to build without http deamon support")

View file

@ -45,7 +45,7 @@
#ifndef XMRIG_NO_HTTPD
# include "api/Httpd.h"
# include "common/api/Httpd.h"
#endif

View file

@ -26,8 +26,8 @@
#include "api/Api.h"
#include "api/ApiRouter.h"
#include "api/HttpReply.h"
#include "api/HttpRequest.h"
#include "common/api/HttpReply.h"
#include "common/api/HttpRequest.h"
ApiRouter *Api::m_router = nullptr;

View file

@ -33,8 +33,8 @@
#include "api/ApiRouter.h"
#include "api/HttpReply.h"
#include "api/HttpRequest.h"
#include "common/api/HttpReply.h"
#include "common/api/HttpRequest.h"
#include "core/Config.h"
#include "core/Controller.h"
#include "Cpu.h"

View file

@ -25,9 +25,9 @@
#include <microhttpd.h>
#include <string.h>
#include "api/HttpBody.h"
#include "api/HttpRequest.h"
#include "api/HttpReply.h"
#include "common/api/HttpBody.h"
#include "common/api/HttpRequest.h"
#include "common/api/HttpReply.h"
#ifndef MHD_HTTP_PAYLOAD_TOO_LARGE

View file

@ -27,9 +27,9 @@
#include "api/Api.h"
#include "api/Httpd.h"
#include "api/HttpReply.h"
#include "api/HttpRequest.h"
#include "common/api/Httpd.h"
#include "common/api/HttpReply.h"
#include "common/api/HttpRequest.h"
#include "log/Log.h"