summarylogtreecommitdiffstats
path: root/chipmachine-1.3c-fixed-against-latest-apone.patch
blob: a6e7f42f83d528d53ea33098af66895e9e9ae109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
From 44ed091a4305b2231595bd7f62c11803eb66aeb7 Mon Sep 17 00:00:00 2001
From: Jonas Minnberg <sasq64@gmail.com>
Date: Sat, 11 Jun 2016 17:10:30 +0200
Subject: [PATCH] Fixed against latest apone

---
 CMakeLists.txt       | 4 ++--
 src/RemoteLoader.cpp | 6 +++---
 src/RemoteLoader.h   | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 75de5dd..7d201d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,8 +6,8 @@ include(${AP1_ROOT}/cmake/Utils.cmake)
 
 add_definitions(-DAPP_NAME=chipmachine)
 
-set(CMAKE_OSX_SYSROOT /Users/jonasm/MacOSX10.9.sdk)
-set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
+# set(CMAKE_OSX_SYSROOT /Users/jonasm/MacOSX10.9.sdk)
+# set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
 
 if(RASPBERRYPI)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv6 -mfpu=vfp -mfloat-abi=hard")
diff --git a/src/RemoteLoader.cpp b/src/RemoteLoader.cpp
index 80a9a2c..0aca3ab 100644
--- a/src/RemoteLoader.cpp
+++ b/src/RemoteLoader.cpp
@@ -81,7 +81,7 @@ bool RemoteLoader::load(const std::string &p, function<void(File f)> done_cb) {
 		url = url.substr(0, url.length() - 4);
 	}
 
-	lastSession = webgetter.getFile(url, [=](webutils::Web::Job job) {
+	lastSession = webgetter.getFile(url, [=](webutils::WebJob job) {
 		LOGD("CODE %d", job.code());
 		auto f = job.file();
 		string fileName = f.getName();
@@ -97,7 +97,7 @@ bool RemoteLoader::load(const std::string &p, function<void(File f)> done_cb) {
 
 void RemoteLoader::preCache(const std::string &path) {}
 
-std::shared_ptr<webutils::Web::Job>
+std::shared_ptr<webutils::WebJob>
 RemoteLoader::stream(const std::string &p,
                      std::function<bool(int what, const uint8_t *data, int size)> data_cb) {
 
@@ -119,7 +119,7 @@ RemoteLoader::stream(const std::string &p,
 	string url = source.url + path;
 	bool headers = false;
 	lastSession = webgetter.streamData(
-	    url, [=](webutils::Web::Job &job, uint8_t *data, int size) mutable -> bool {
+	    url, [=](webutils::WebJob &job, uint8_t *data, int size) mutable -> bool {
 		    if(!headers) {
 			    string s = job.getHeader("icy-metaint");
 			    if(s != "") {
diff --git a/src/RemoteLoader.h b/src/RemoteLoader.h
index 05d9086..eb46da3 100644
--- a/src/RemoteLoader.h
+++ b/src/RemoteLoader.h
@@ -17,7 +17,7 @@ class RemoteLoader {
 
 	bool load(const std::string &path, std::function<void(utils::File)> done_cb);
 
-	std::shared_ptr<webutils::Web::Job>
+	std::shared_ptr<webutils::WebJob>
 	stream(const std::string &path,
 	       std::function<bool(int what, const uint8_t *data, int size)> data_cb);
 
@@ -55,7 +55,7 @@ class RemoteLoader {
 	std::unordered_map<std::string, Source> sources;
 
 	webutils::Web webgetter;
-	std::shared_ptr<webutils::Web::Job> lastSession;
+	std::shared_ptr<webutils::WebJob> lastSession;
 };
 
 #endif // REMOTE_LOADER_H