summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts')
-rw-r--r--meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts/0001-Update-to-p8-platform.patch427
1 files changed, 0 insertions, 427 deletions
diff --git a/meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts/0001-Update-to-p8-platform.patch b/meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts/0001-Update-to-p8-platform.patch
deleted file mode 100644
index c4a6ae7315..0000000000
--- a/meta-multimedia/recipes-mediacenter/kodi/kodi-addon-pvr-hts/0001-Update-to-p8-platform.patch
+++ /dev/null
@@ -1,427 +0,0 @@
1From 06a8224c99282ac1a606edd9e8ea3f591112942d Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Thu, 18 Feb 2016 14:04:31 +0100
4Subject: [PATCH] Update to p8-platform
5
6---
7 CMakeLists.txt | 6 +++---
8 pvr.hts/changelog.txt | 4 ++--
9 src/AutoRecordings.cpp | 2 +-
10 src/HTSPConnection.cpp | 8 +++----
11 src/HTSPDemuxer.cpp | 2 +-
12 src/HTSPVFS.cpp | 6 +++---
13 src/TimeRecordings.cpp | 2 +-
14 src/Tvheadend.cpp | 4 ++--
15 src/Tvheadend.h | 38 +++++++++++++++++-----------------
16 src/client.cpp | 4 ++--
17 src/client.h | 4 ++--
18 src/tvheadend/Subscription.cpp | 2 +-
19 src/tvheadend/Subscription.h | 4 ++--
20 src/tvheadend/utilities/AsyncState.cpp | 4 ++--
21 src/tvheadend/utilities/AsyncState.h | 6 +++---
22 15 files changed, 48 insertions(+), 48 deletions(-)
23
24diff --git a/CMakeLists.txt b/CMakeLists.txt
25index 0842682..cb04942 100644
26--- a/CMakeLists.txt
27+++ b/CMakeLists.txt
28@@ -6,10 +6,10 @@ enable_language(CXX)
29
30 find_package(kodi REQUIRED)
31 find_package(kodiplatform REQUIRED)
32-find_package(platform REQUIRED)
33+find_package(p8-platform REQUIRED)
34
35 include_directories(${kodiplatform_INCLUDE_DIRS}
36- ${platform_INCLUDE_DIRS}
37+ ${p8-platform_INCLUDE_DIRS}
38 ${KODI_INCLUDE_DIR}
39 ${PROJECT_SOURCE_DIR}/lib)
40
41@@ -95,7 +95,7 @@ list(APPEND HTS_SOURCES
42
43 add_subdirectory(lib/libhts)
44
45-set(DEPLIBS ${platform_LIBRARIES} hts)
46+set(DEPLIBS ${p8-platform_LIBRARIES} hts)
47 if(WIN32)
48 list(APPEND DEPLIBS ws2_32)
49 endif()
50diff --git a/pvr.hts/changelog.txt b/pvr.hts/changelog.txt
51index 9ffa33c..1e7fe30 100644
52--- a/pvr.hts/changelog.txt
53+++ b/pvr.hts/changelog.txt
54@@ -49,7 +49,7 @@
55 - fixed: Autorec: Start and stop time handling.
56 - fixed: LocaltimeToUTC conversion (timer settings clock display incorrect).
57 - fixed: Several issues with predictive tuning.
58-- added: build: Automatically fill in platform and library name.
59+- added: build: Automatically fill in p8-platform and library name.
60 - fixed: Use epg data only for creation of epg-based timers.
61 - improved: Do not try to reconnect to tvh while suspending or not fully awake again.
62
63@@ -97,7 +97,7 @@
64 - added: support for creating repeating timers, aka time schedules
65 - fixed: conditions for addon restart after settings changes
66 - internal: fixed build system regressions introduced with move to cmake
67-- internal: updated to use libplatform
68+- internal: updated to use libp8-platform
69
70 2.1.7
71 - added: support for radio channel groups
72diff --git a/src/AutoRecordings.cpp b/src/AutoRecordings.cpp
73index 5fa60a0..d9e5e1d 100644
74--- a/src/AutoRecordings.cpp
75+++ b/src/AutoRecordings.cpp
76@@ -26,7 +26,7 @@
77 #include "tvheadend/utilities/Utilities.h"
78 #include "tvheadend/utilities/Logger.h"
79
80-using namespace PLATFORM;
81+using namespace P8PLATFORM;
82 using namespace tvheadend;
83 using namespace tvheadend::entity;
84 using namespace tvheadend::utilities;
85diff --git a/src/HTSPConnection.cpp b/src/HTSPConnection.cpp
86index aec1296..86f5004 100644
87--- a/src/HTSPConnection.cpp
88+++ b/src/HTSPConnection.cpp
89@@ -19,9 +19,9 @@
90 *
91 */
92
93-#include "platform/threads/mutex.h"
94-#include "platform/util/StringUtils.h"
95-#include "platform/sockets/tcp.h"
96+#include "p8-platform/threads/mutex.h"
97+#include "p8-platform/util/StringUtils.h"
98+#include "p8-platform/sockets/tcp.h"
99
100 extern "C" {
101 #include "libhts/htsmsg_binary.h"
102@@ -33,7 +33,7 @@ extern "C" {
103
104 using namespace std;
105 using namespace ADDON;
106-using namespace PLATFORM;
107+using namespace P8PLATFORM;
108 using namespace tvheadend;
109 using namespace tvheadend::utilities;
110
111diff --git a/src/HTSPDemuxer.cpp b/src/HTSPDemuxer.cpp
112index a6e1f12..7f45345 100644
113--- a/src/HTSPDemuxer.cpp
114+++ b/src/HTSPDemuxer.cpp
115@@ -27,7 +27,7 @@
116
117 using namespace std;
118 using namespace ADDON;
119-using namespace PLATFORM;
120+using namespace P8PLATFORM;
121 using namespace tvheadend;
122 using namespace tvheadend::utilities;
123
124diff --git a/src/HTSPVFS.cpp b/src/HTSPVFS.cpp
125index 0463f56..0404bab 100644
126--- a/src/HTSPVFS.cpp
127+++ b/src/HTSPVFS.cpp
128@@ -19,8 +19,8 @@
129 *
130 */
131
132-#include "platform/threads/mutex.h"
133-#include "platform/util/StringUtils.h"
134+#include "p8-platform/threads/mutex.h"
135+#include "p8-platform/util/StringUtils.h"
136 #include "tvheadend/utilities/Logger.h"
137
138 extern "C" {
139@@ -30,7 +30,7 @@ extern "C" {
140 #include "Tvheadend.h"
141
142 using namespace std;
143-using namespace PLATFORM;
144+using namespace P8PLATFORM;
145 using namespace tvheadend::utilities;
146
147 /*
148diff --git a/src/TimeRecordings.cpp b/src/TimeRecordings.cpp
149index 5d34938..97aae09 100644
150--- a/src/TimeRecordings.cpp
151+++ b/src/TimeRecordings.cpp
152@@ -25,7 +25,7 @@
153 #include "tvheadend/utilities/Utilities.h"
154 #include "tvheadend/utilities/Logger.h"
155
156-using namespace PLATFORM;
157+using namespace P8PLATFORM;
158 using namespace tvheadend;
159 using namespace tvheadend::entity;
160 using namespace tvheadend::utilities;
161diff --git a/src/Tvheadend.cpp b/src/Tvheadend.cpp
162index 2057241..14c3bd4 100644
163--- a/src/Tvheadend.cpp
164+++ b/src/Tvheadend.cpp
165@@ -23,7 +23,7 @@
166 #include <ctime>
167 #include <memory>
168
169-#include "platform/util/StringUtils.h"
170+#include "p8-platform/util/StringUtils.h"
171
172 #include "Tvheadend.h"
173 #include "tvheadend/utilities/Utilities.h"
174@@ -31,7 +31,7 @@
175
176 using namespace std;
177 using namespace ADDON;
178-using namespace PLATFORM;
179+using namespace P8PLATFORM;
180 using namespace tvheadend;
181 using namespace tvheadend::entity;
182 using namespace tvheadend::utilities;
183diff --git a/src/Tvheadend.h b/src/Tvheadend.h
184index 2ce4552..e794716 100644
185--- a/src/Tvheadend.h
186+++ b/src/Tvheadend.h
187@@ -22,10 +22,10 @@
188 */
189
190 #include "client.h"
191-#include "platform/sockets/tcp.h"
192-#include "platform/threads/threads.h"
193-#include "platform/threads/mutex.h"
194-#include "platform/util/buffer.h"
195+#include "p8-platform/sockets/tcp.h"
196+#include "p8-platform/threads/threads.h"
197+#include "p8-platform/threads/mutex.h"
198+#include "p8-platform/util/buffer.h"
199 #include "kodi/xbmc_codec_types.h"
200 #include "kodi/xbmc_stream_utils.hpp"
201 #include "kodi/libXBMC_addon.h"
202@@ -88,7 +88,7 @@ class CHTSPMessage;
203
204 /* Typedefs */
205 typedef std::map<uint32_t,CHTSPResponse*> CHTSPResponseList;
206-typedef PLATFORM::SyncedBuffer<CHTSPMessage> CHTSPMessageQueue;
207+typedef P8PLATFORM::SyncedBuffer<CHTSPMessage> CHTSPMessageQueue;
208
209 /*
210 * HTSP Response handler
211@@ -98,10 +98,10 @@ class CHTSPResponse
212 public:
213 CHTSPResponse();
214 ~CHTSPResponse();
215- htsmsg_t *Get ( PLATFORM::CMutex &mutex, uint32_t timeout );
216+ htsmsg_t *Get ( P8PLATFORM::CMutex &mutex, uint32_t timeout );
217 void Set ( htsmsg_t *m );
218 private:
219- PLATFORM::CCondition<volatile bool> m_cond;
220+ P8PLATFORM::CCondition<volatile bool> m_cond;
221 bool m_flag;
222 htsmsg_t *m_msg;
223 };
224@@ -146,7 +146,7 @@ public:
225 * HTSP Connection registration thread
226 */
227 class CHTSPRegister
228- : public PLATFORM::CThread
229+ : public P8PLATFORM::CThread
230 {
231 friend class CHTSPConnection;
232
233@@ -163,7 +163,7 @@ private:
234 * HTSP Connection
235 */
236 class CHTSPConnection
237- : public PLATFORM::CThread
238+ : public P8PLATFORM::CThread
239 {
240 friend class CHTSPRegister;
241
242@@ -190,7 +190,7 @@ public:
243 inline bool IsConnected ( void ) const { return m_ready; }
244 bool WaitForConnection ( void );
245
246- inline PLATFORM::CMutex& Mutex ( void ) { return m_mutex; }
247+ inline P8PLATFORM::CMutex& Mutex ( void ) { return m_mutex; }
248
249 void OnSleep ( void );
250 void OnWake ( void );
251@@ -202,10 +202,10 @@ private:
252 bool SendHello ( void );
253 bool SendAuth ( const std::string &u, const std::string &p );
254
255- PLATFORM::CTcpSocket *m_socket;
256- PLATFORM::CMutex m_mutex;
257+ P8PLATFORM::CTcpSocket *m_socket;
258+ P8PLATFORM::CMutex m_mutex;
259 CHTSPRegister m_regThread;
260- PLATFORM::CCondition<volatile bool> m_regCond;
261+ P8PLATFORM::CCondition<volatile bool> m_regCond;
262 bool m_ready;
263 uint32_t m_seq;
264 std::string m_serverName;
265@@ -273,13 +273,13 @@ public:
266 void SetStreamingProfile(const std::string &profile);
267
268 private:
269- PLATFORM::CMutex m_mutex;
270+ P8PLATFORM::CMutex m_mutex;
271 CHTSPConnection &m_conn;
272- PLATFORM::SyncedBuffer<DemuxPacket*> m_pktBuffer;
273+ P8PLATFORM::SyncedBuffer<DemuxPacket*> m_pktBuffer;
274 ADDON::XbmcStreamProperties m_streams;
275 std::map<int,int> m_streamStat;
276 int64_t m_seekTime;
277- PLATFORM::CCondition<volatile int64_t> m_seekCond;
278+ P8PLATFORM::CCondition<volatile int64_t> m_seekCond;
279 bool m_seeking;
280 bool m_speedChange;
281 tvheadend::status::SourceInfo m_sourceInfo;
282@@ -350,7 +350,7 @@ private:
283 * Root object for Tvheadend connection
284 */
285 class CTvheadend
286- : public PLATFORM::CThread
287+ : public P8PLATFORM::CThread
288 {
289 public:
290 CTvheadend();
291@@ -422,7 +422,7 @@ private:
292 */
293 tvheadend::Profiles m_profiles;
294
295- PLATFORM::CMutex m_mutex;
296+ P8PLATFORM::CMutex m_mutex;
297
298 CHTSPConnection m_conn;
299
300@@ -519,7 +519,7 @@ public:
301 */
302 bool WaitForConnection ( void )
303 {
304- PLATFORM::CLockObject lock(m_conn.Mutex());
305+ P8PLATFORM::CLockObject lock(m_conn.Mutex());
306 return m_conn.WaitForConnection();
307 }
308 std::string GetServerName ( void )
309diff --git a/src/client.cpp b/src/client.cpp
310index 94d2db9..3295914 100644
311--- a/src/client.cpp
312+++ b/src/client.cpp
313@@ -22,14 +22,14 @@
314 #include "client.h"
315 #include "kodi/xbmc_pvr_dll.h"
316 #include "kodi/libKODI_guilib.h"
317-#include "platform/util/util.h"
318+#include "p8-platform/util/util.h"
319 #include "Tvheadend.h"
320 #include "tvheadend/Settings.h"
321 #include "tvheadend/utilities/Logger.h"
322
323 using namespace std;
324 using namespace ADDON;
325-using namespace PLATFORM;
326+using namespace P8PLATFORM;
327 using namespace tvheadend;
328 using namespace tvheadend::utilities;
329
330diff --git a/src/client.h b/src/client.h
331index 3a5f950..a10659b 100644
332--- a/src/client.h
333+++ b/src/client.h
334@@ -20,8 +20,8 @@
335 *
336 */
337
338-#include "platform/os.h"
339-#include "platform/threads/mutex.h"
340+#include "p8-platform/os.h"
341+#include "p8-platform/threads/mutex.h"
342 #include "kodi/libXBMC_addon.h"
343 #include "kodi/libXBMC_pvr.h"
344 #include "kodi/libXBMC_codec.h"
345diff --git a/src/tvheadend/Subscription.cpp b/src/tvheadend/Subscription.cpp
346index 182ca7f..e18af1e 100644
347--- a/src/tvheadend/Subscription.cpp
348+++ b/src/tvheadend/Subscription.cpp
349@@ -23,7 +23,7 @@
350 #include "utilities/Logger.h"
351 #include "../Tvheadend.h"
352
353-using namespace PLATFORM;
354+using namespace P8PLATFORM;
355 using namespace tvheadend;
356 using namespace tvheadend::utilities;
357
358diff --git a/src/tvheadend/Subscription.h b/src/tvheadend/Subscription.h
359index b03bcce..363e5ef 100644
360--- a/src/tvheadend/Subscription.h
361+++ b/src/tvheadend/Subscription.h
362@@ -22,7 +22,7 @@
363 */
364
365 #include <string>
366-#include "platform/threads/mutex.h"
367+#include "p8-platform/threads/mutex.h"
368
369 extern "C"
370 {
371@@ -146,6 +146,6 @@ namespace tvheadend
372 std::string m_profile;
373 CHTSPConnection &m_conn;
374
375- mutable PLATFORM::CMutex m_mutex;
376+ mutable P8PLATFORM::CMutex m_mutex;
377 };
378 }
379diff --git a/src/tvheadend/utilities/AsyncState.cpp b/src/tvheadend/utilities/AsyncState.cpp
380index 0c30a93..1f4fdf3 100644
381--- a/src/tvheadend/utilities/AsyncState.cpp
382+++ b/src/tvheadend/utilities/AsyncState.cpp
383@@ -22,7 +22,7 @@
384 #include "AsyncState.h"
385
386 using namespace tvheadend::utilities;
387-using namespace PLATFORM;
388+using namespace P8PLATFORM;
389
390 struct Param {
391 eAsyncState state;
392@@ -37,7 +37,7 @@ AsyncState::AsyncState(int timeout)
393
394 eAsyncState AsyncState::GetState()
395 {
396- PLATFORM::CLockObject lock(m_mutex);
397+ P8PLATFORM::CLockObject lock(m_mutex);
398 return m_state;
399 }
400
401diff --git a/src/tvheadend/utilities/AsyncState.h b/src/tvheadend/utilities/AsyncState.h
402index 1d672da..0819cd8 100644
403--- a/src/tvheadend/utilities/AsyncState.h
404+++ b/src/tvheadend/utilities/AsyncState.h
405@@ -22,7 +22,7 @@
406 #ifndef ASYNCSTATE_H
407 #define ASYNCSTATE_H
408
409-#include "platform/threads/mutex.h"
410+#include "p8-platform/threads/mutex.h"
411
412 namespace tvheadend {
413 namespace utilities {
414@@ -75,8 +75,8 @@ namespace tvheadend {
415 static bool PredicateCallback ( void *param );
416
417 eAsyncState m_state;
418- PLATFORM::CMutex m_mutex;
419- PLATFORM::CCondition<bool> m_condition;
420+ P8PLATFORM::CMutex m_mutex;
421+ P8PLATFORM::CCondition<bool> m_condition;
422 int m_timeout;
423
424 };
425--
4262.0.1
427