Permalink
Browse files

pvr add-ons: initial commit

  • Loading branch information...
0 parents commit 58757711c5f9ae4797ea8aa0c544a7669f063e88 @opdenkamp committed Apr 10, 2012
Showing with 24,363 additions and 0 deletions.
  1. +30 −0 .gitignore
  2. +1 −0 AUTHORS
  3. +674 −0 COPYING
  4. 0 ChangeLog
  5. +26 −0 Makefile.am
  6. 0 NEWS
  7. +26 −0 README
  8. +13 −0 addons/Makefile.am
  9. +35 −0 addons/Makefile.include.am
  10. +21 −0 addons/pvr.hts/Makefile.am
  11. +22 −0 addons/pvr.hts/addon/addon.xml
  12. BIN addons/pvr.hts/addon/icon.png
  13. +15 −0 addons/pvr.hts/addon/resources/language/Dutch/strings.xml
  14. +15 −0 addons/pvr.hts/addon/resources/language/English/strings.xml
  15. +15 −0 addons/pvr.hts/addon/resources/language/Finnish/strings.xml
  16. +16 −0 addons/pvr.hts/addon/resources/language/German/strings.xml
  17. +10 −0 addons/pvr.hts/addon/resources/settings.xml
  18. +355 −0 addons/pvr.hts/src/HTSPConnection.cpp
  19. +75 −0 addons/pvr.hts/src/HTSPConnection.h
  20. +1,112 −0 addons/pvr.hts/src/HTSPData.cpp
  21. +121 −0 addons/pvr.hts/src/HTSPData.h
  22. +533 −0 addons/pvr.hts/src/HTSPDemux.cpp
  23. +68 −0 addons/pvr.hts/src/HTSPDemux.h
  24. +234 −0 addons/pvr.hts/src/HTSPTypes.h
  25. +559 −0 addons/pvr.hts/src/client.cpp
  26. +45 −0 addons/pvr.hts/src/client.h
  27. +26 −0 addons/pvr.vdr.vnsi/Makefile.am
  28. +23 −0 addons/pvr.vdr.vnsi/addon/addon.xml
  29. BIN addons/pvr.vdr.vnsi/addon/icon.png
  30. +48 −0 addons/pvr.vdr.vnsi/addon/resources/language/Dutch/strings.xml
  31. +51 −0 addons/pvr.vdr.vnsi/addon/resources/language/English/strings.xml
  32. +51 −0 addons/pvr.vdr.vnsi/addon/resources/language/Finnish/strings.xml
  33. +51 −0 addons/pvr.vdr.vnsi/addon/resources/language/German/strings.xml
  34. +10 −0 addons/pvr.vdr.vnsi/addon/resources/settings.xml
  35. +733 −0 addons/pvr.vdr.vnsi/addon/resources/skins/Confluence/720p/ChannelScan.xml
  36. +598 −0 addons/pvr.vdr.vnsi/src/VNSIChannelScan.cpp
  37. +95 −0 addons/pvr.vdr.vnsi/src/VNSIChannelScan.h
  38. +982 −0 addons/pvr.vdr.vnsi/src/VNSIData.cpp
  39. +91 −0 addons/pvr.vdr.vnsi/src/VNSIData.h
  40. +486 −0 addons/pvr.vdr.vnsi/src/VNSIDemux.cpp
  41. +66 −0 addons/pvr.vdr.vnsi/src/VNSIDemux.h
  42. +180 −0 addons/pvr.vdr.vnsi/src/VNSIRecording.cpp
  43. +51 −0 addons/pvr.vdr.vnsi/src/VNSIRecording.h
  44. +365 −0 addons/pvr.vdr.vnsi/src/VNSISession.cpp
  45. +99 −0 addons/pvr.vdr.vnsi/src/VNSISession.h
  46. +647 −0 addons/pvr.vdr.vnsi/src/client.cpp
  47. +45 −0 addons/pvr.vdr.vnsi/src/client.h
  48. +146 −0 addons/pvr.vdr.vnsi/src/requestpacket.cpp
  49. +62 −0 addons/pvr.vdr.vnsi/src/requestpacket.h
  50. +161 −0 addons/pvr.vdr.vnsi/src/responsepacket.cpp
  51. +79 −0 addons/pvr.vdr.vnsi/src/responsepacket.h
  52. +52 −0 addons/pvr.vdr.vnsi/src/tools.cpp
  53. +26 −0 addons/pvr.vdr.vnsi/src/tools.h
  54. +122 −0 addons/pvr.vdr.vnsi/src/vnsicommand.h
  55. +81 −0 configure.ac
  56. +7 −0 lib/Makefile.am
  57. +15 −0 lib/libhts/Makefile.am
  58. +84 −0 lib/libhts/Win32/include/getopt.h
  59. +306 −0 lib/libhts/Win32/include/inttypes.h
  60. +34 −0 lib/libhts/Win32/include/msvc.h
  61. +574 −0 lib/libhts/Win32/include/sys/queue.h
  62. +47 −0 lib/libhts/Win32/include/unistd.h
  63. +110 −0 lib/libhts/Win32/libhts_2010.vcxproj
  64. +64 −0 lib/libhts/Win32/libhts_2010.vcxproj.filters
  65. +61 −0 lib/libhts/hts_strtab.h
  66. +19 −0 lib/libhts/htsatomic.c
  67. +37 −0 lib/libhts/htsatomic.h
  68. +255 −0 lib/libhts/htsbuf.c
  69. +65 −0 lib/libhts/htsbuf.h
  70. +578 −0 lib/libhts/htsmsg.c
  71. +263 −0 lib/libhts/htsmsg.h
  72. +283 −0 lib/libhts/htsmsg_binary.c
  73. +34 −0 lib/libhts/htsmsg_binary.h
  74. +146 −0 lib/libhts/htsq.h
  75. +193 −0 lib/libhts/htsstr.c
  76. +33 −0 lib/libhts/htsstr.h
  77. +51 −0 lib/libhts/net.h
  78. +350 −0 lib/libhts/net_posix.c
  79. +391 −0 lib/libhts/net_winsock.c
  80. +225 −0 lib/libhts/sha1.c
  81. +36 −0 lib/libhts/sha1.h
  82. +50 −0 lib/platform/os.h
  83. +326 −0 lib/platform/posix/os-socket.h
  84. +119 −0 lib/platform/posix/os-threads.h
  85. +54 −0 lib/platform/posix/os-types.h
  86. +193 −0 lib/platform/posix/serialport.cpp
  87. +115 −0 lib/platform/sockets/serialport.h
  88. +228 −0 lib/platform/sockets/socket.h
  89. +130 −0 lib/platform/sockets/tcp.h
  90. +353 −0 lib/platform/threads/mutex.h
  91. +152 −0 lib/platform/threads/threads.h
  92. +4,337 −0 lib/platform/util/StdString.h
  93. +145 −0 lib/platform/util/atomic.h
  94. +211 −0 lib/platform/util/baudrate.h
  95. +98 −0 lib/platform/util/buffer.h
  96. +122 −0 lib/platform/util/timeutils.h
  97. +263 −0 lib/platform/windows/dlfcn-win32.cpp
  98. +46 −0 lib/platform/windows/dlfcn-win32.h
  99. +297 −0 lib/platform/windows/os-socket.h
  100. +136 −0 lib/platform/windows/os-threads.cpp
  101. +65 −0 lib/platform/windows/os-threads.h
  102. +80 −0 lib/platform/windows/os-types.h
  103. +211 −0 lib/platform/windows/serialport.cpp
  104. +247 −0 lib/platform/windows/stdint.h
  105. +37 −0 xbmc/DVDDemuxPacket.h
  106. +12 −0 xbmc/NOTE
  107. +454 −0 xbmc/avcodec.h
  108. +182 −0 xbmc/libXBMC_addon.h
  109. +310 −0 xbmc/libXBMC_gui.h
  110. +170 −0 xbmc/libXBMC_pvr.h
  111. +192 −0 xbmc/xbmc_addon_cpp_dll.h
  112. +55 −0 xbmc/xbmc_addon_dll.h
  113. +64 −0 xbmc/xbmc_addon_types.h
  114. +96 −0 xbmc/xbmc_epg_types.h
  115. +470 −0 xbmc/xbmc_pvr_dll.h
  116. +366 −0 xbmc/xbmc_pvr_types.h
  117. +46 −0 xbmc/xbmc_scr_dll.h
  118. +54 −0 xbmc/xbmc_scr_types.h
  119. +56 −0 xbmc/xbmc_vis_dll.h
  120. +112 −0 xbmc/xbmc_vis_types.h
@@ -0,0 +1,30 @@
+.build
+.deps
+.libs
+
+aclocal.m4
+autom4te.cache
+config.log
+config.status
+config.guess
+config.sub
+configure
+configure.lineno
+depcomp
+INSTALL
+install-sh
+libtool
+ltmain.sh
+Makefile
+Makefile.in
+Makefile.include
+Makefile.include.in
+missing
+
+*.o
+*.a
+*.P
+*.lo
+*.la
+*.pvr
+*.zip
@@ -0,0 +1 @@
+Team XBMC
674 COPYING
Oops, something went wrong.
No changes.
@@ -0,0 +1,26 @@
+SUBDIRS = lib addons
+
+zip:
+ make -C lib all
+ make -C addons zip
+
+install:
+ make -C lib all
+ make -C addons install
+
+sync:
+ cp -f ../xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxPacket.h xbmc/DVDDemuxPacket.h
+ cat ../addons/library.xbmc.addon/libXBMC_addon.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_addon.h
+ cat ../addons/library.xbmc.gui/libXBMC_gui.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_gui.h
+ cat ../addons/library.xbmc.pvr/libXBMC_pvr.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_pvr.h
+ cp -f ../xbmc/addons/include/xbmc_addon_cpp_dll.h xbmc/xbmc_addon_cpp_dll.h
+ cp -f ../xbmc/addons/include/xbmc_addon_dll.h xbmc/xbmc_addon_dll.h
+ cp -f ../xbmc/addons/include/xbmc_addon_types.h xbmc/xbmc_addon_types.h
+ cp -f ../xbmc/addons/include/xbmc_epg_types.h xbmc/xbmc_epg_types.h
+ cp -f ../xbmc/addons/include/xbmc_pvr_dll.h xbmc/xbmc_pvr_dll.h
+ cp -f ../xbmc/addons/include/xbmc_pvr_types.h xbmc/xbmc_pvr_types.h
+ cp -f ../xbmc/addons/include/xbmc_scr_dll.h xbmc/xbmc_scr_dll.h
+ cp -f ../xbmc/addons/include/xbmc_scr_types.h xbmc/xbmc_scr_types.h
+ cp -f ../xbmc/addons/include/xbmc_vis_dll.h xbmc/xbmc_vis_dll.h
+ cp -f ../xbmc/addons/include/xbmc_vis_types.h xbmc/xbmc_vis_types.h
+
0 NEWS
No changes.
26 README
@@ -0,0 +1,26 @@
+WARNING: this is work in progress. Don't try to use this unless you know what you're doing.
+
+=============================
+ Linux
+=============================
+
+Start by executing:
+autoreconf -vif
+
+To install add-ons into /path/to/XBMC:
+./configure --prefix=/path/to/XBMC
+make install
+
+To build all PVR add-ons as .zip archives:
+./configure
+make zip
+
+=============================
+ OS-X
+=============================
+TODO
+
+=============================
+ Windows
+=============================
+TODO
@@ -0,0 +1,13 @@
+SUBDIRS = pvr.hts \
+ pvr.vdr.vnsi
+
+clean:
+ -rm -f *.zip
+ for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
+
+zip:
+ for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d zip; fi; done
+
+install:
+ for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d install; fi; done
+
@@ -0,0 +1,35 @@
+#
+# Makefile include for XBMC PVR add-ons
+#
+
+INCLUDES = -I. -I$(abs_top_srcdir)/xbmc -I$(abs_top_srcdir)/lib @HOST_INCLUDES@
+WARNINGS = -Wall -Wextra -Wno-missing-field-initializers -Woverloaded-virtual -Wno-parentheses
+DEFINES = -D_LINUX -DUSE_DEMUX -D__STDC_CONSTANT_MACROS
+AM_CXXFLAGS = -g -O2 -fPIC $(WARNINGS) $(DEFINES) @HOST_CXXFLAGS@
+LIBDIR = @abs_top_srcdir@/addons/$(ADDONNAME)/addon
+LIB = @abs_top_srcdir@/addons/$(ADDONNAME)/addon/$(ADDONBINNAME).pvr
+
+clean:
+ -rm -r -f $(LIB) $(ADDONBINNAME).pvr @abs_top_srcdir@/addons/$(ADDONNAME).@OS@-@ARCHITECTURE@.zip @abs_top_srcdir@/addons/.build/$(ADDONNAME) *.so *.lo *.o *.la *.a *.P *~
+
+release: $(lib_LTLIBRARIES)
+ cp -f -v .libs/$(LIBNAME).so $(ADDONBINNAME).pvr
+ $(STRIP) -x $(ADDONBINNAME).pvr
+
+debug: $(lib_LTLIBRARIES)
+ cp -f -v .libs/$(LIBNAME).so $(ADDONBINNAME).pvr
+
+$(LIB): @BUILD_TYPE@
+ cp -f -v $(ADDONBINNAME).pvr $(LIB)
+
+zip: $(LIB)
+ mkdir -p @abs_top_srcdir@/addons/.build
+ cp -r -f -v @abs_top_srcdir@/addons/$(ADDONNAME)/addon @abs_top_srcdir@/addons/.build/$(ADDONNAME)
+ cd @abs_top_srcdir@/addons/.build ; zip -9 -r @abs_top_srcdir@/addons/$(ADDONNAME)-@OS@-@ARCHITECTURE@.zip $(ADDONNAME)
+
+install: $(LIB)
+ mkdir -p $(prefix)
+ cp -r -f -v @abs_top_srcdir@/addons/$(ADDONNAME)/addon $(prefix)/$(ADDONNAME)
+
+all: $(LIB)
+
@@ -0,0 +1,21 @@
+#
+# Makefile for the HTS Tvheadend add-on for XBMC PVR
+#
+# See the README for copyright information and
+# how to reach the author.
+#
+
+ADDONBINNAME = XBMC_Tvheadend
+ADDONNAME = pvr.hts
+LIBNAME = libtvheadend-addon
+lib_LTLIBRARIES = libtvheadend-addon.la
+
+LIBS = @abs_top_srcdir@/lib/libhts/libhts.la -ldl
+
+include ../Makefile.include.am
+
+libtvheadend_addon_la_SOURCES = src/client.cpp \
+ src/HTSPConnection.cpp \
+ src/HTSPData.cpp \
+ src/HTSPDemux.cpp
+
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<addon
+ id="pvr.hts"
+ version="1.0.0"
+ name="Tvheadend HTSP Client"
+ provider-name="Lars Op den Kamp, Team XBMC">
+ <requires>
+ <c-pluff version="0.1"/>
+ </requires>
+ <extension
+ point="xbmc.pvrclient"
+ library_linux="XBMC_Tvheadend.pvr"
+ library_osx="XBMC_Tvheadend.pvr"
+ library_wingl="XBMC_Tvheadend_win32.pvr"
+ library_windx="XBMC_Tvheadend_win32.pvr"/>
+ <extension point="xbmc.addon.metadata">
+ <summary>XBMC's frontend for Tvheadend</summary>
+ <description>Tvheadend frontend; supporting streaming of Live TV &amp; Recordings, EPG, Timers</description>
+ <disclaimer>This is unstable software! The authors are in no way responsible for failed recordings, incorrect timers, wasted hours, or any other undesirable effects..</disclaimer>
+ <platform>all</platform>
+ </extension>
+</addon>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<strings>
+ <!-- settings labels -->
+ <string id="30000">Tvheadend server naam of IP adres</string>
+ <string id="30001">HTTP poort</string>
+ <string id="30002">HTSP poort</string>
+ <string id="30003">Gebruikersnaam</string>
+ <string id="30004">Wachtwoord</string>
+ <string id="30006">Verbinding timeout in seconden</string>
+ <string id="30007">Antwoord timeout in seconden</string>
+
+ <!-- notifications -->
+ <string id="30500">Verbinding met '%s' verbroken</string>
+ <string id="30501">Verbinding met '%s' hersteld</string>
+</strings>
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<strings>
+ <!-- settings labels -->
+ <string id="30000">Tvheadend hostname or IP address</string>
+ <string id="30001">HTTP port</string>
+ <string id="30002">HTSP port</string>
+ <string id="30003">Username</string>
+ <string id="30004">Password</string>
+ <string id="30006">Connect timeout in seconds</string>
+ <string id="30007">Response timeout in seconds</string>
+
+ <!-- notifications -->
+ <string id="30500">Disconnected from '%s'</string>
+ <string id="30501">Reconnected to '%s'</string>
+</strings>
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<strings>
+ <!-- settings labels -->
+ <string id="30000">Tvheadend-palvelimen nimi tai IP-osoite</string>
+ <string id="30001">HTTP-portti</string>
+ <string id="30002">HTSP-portti</string>
+ <string id="30003">Käyttäjänimi</string>
+ <string id="30004">Salasana</string>
+ <string id="30006">Yhteyden aikakatkaisu sekunneissa</string>
+ <string id="30007">Vastauksen aikakatkaisu sekunneissa</string>
+
+ <!-- notifications -->
+ <string id="30500">Yhteys katkaistu palvelimeen '%s'</string>
+ <string id="30501">Yhdistetty palvelimeen '%s'</string>
+</strings>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<strings>
+ <!-- settings labels -->
+ <string id="30000">Tvheadend Hostname oder IP</string>
+ <string id="30001">HTTP Port</string>
+ <string id="30002">HTSP Port</string>
+ <string id="30003">Benutzername</string>
+ <string id="30004">Passwort</string>
+
+ <string id="30006">Verbindungszeit Überschreitung in Sekunden</string>
+ <string id="30007">Antwortzeit Überschreitung in Sekunden</string>
+
+ <!-- notifications -->
+ <string id="30500">Getrennt von '%s'</string>
+ <string id="30501">Wiederverbunden mit '%s'</string>
+</strings>
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<settings>
+ <setting id="host" type="text" label="30000" default="127.0.0.1" />
+ <setting id="http_port" type="number" label="30001" default="9981" />
+ <setting id="htsp_port" type="number" label="30002" default="9982" />
+ <setting id="user" type="text" label="30003" default="" />
+ <setting id="pass" type="text" label="30004" option="hidden" default="" />
+ <setting id="connect_timeout" type="enum" label="30006" values="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" default="29" />
+ <setting id="response_timeout" type="enum" label="30007" values="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" default="1" />
+</settings>
Oops, something went wrong.

0 comments on commit 5875771

Please sign in to comment.