Commit cf426990 authored by vgmoose's avatar vgmoose 🌱
Browse files

allow network mocking, bump libs and stub out feedback submitting

if -DNETWORK_MOCK is defined, it should compile without needing to link libcurl
parent 995a8050
Pipeline #137540285 passed with stage
in 4 minutes and 15 seconds
......@@ -5,8 +5,10 @@
#include "../libs/chesto/src/RootDisplay.hpp"
#ifndef NETWORK_MOCK
#include <curl/curl.h>
#include <curl/easy.h>
#endif
Feedback::Feedback(Package* package)
: package(package)
......@@ -77,6 +79,7 @@ void Feedback::keyboardInputCallback()
void Feedback::submit()
{
#ifndef NETWORK_MOCK
CURL* curl;
CURLcode res;
......@@ -98,6 +101,7 @@ void Feedback::submit()
/* always cleanup */
curl_easy_cleanup(curl);
}
#endif
// close this window
this->back();
......
Subproject commit 7f8feb232644363ed7144dd79d87701cc925ac71
Subproject commit aa3e8cbeaa679ee60ea97d3feacdd722fdee90ab
Subproject commit 1899d9878190efa23e4d7d06d4ca473fecf007e2
Subproject commit 0d403f680d82a93faabcf3e0129cf308efed990c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment