Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/Krypton-next' into …
Browse files Browse the repository at this point in the history
…Krypton
  • Loading branch information
djp952 committed Mar 25, 2017
2 parents 7849860 + 9e3625c commit 1d53e42
Show file tree
Hide file tree
Showing 16 changed files with 507 additions and 49 deletions.
8 changes: 7 additions & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,22 @@ LOCAL_LDLIBS += \
-llog

LOCAL_SRC_FILES := \
depends/libhdhomerun/hdhomerun_channels.c \
depends/libhdhomerun/hdhomerun_channelscan.c \
depends/libhdhomerun/hdhomerun_control.c \
depends/libhdhomerun/hdhomerun_debug.c \
depends/libhdhomerun/hdhomerun_device.c \
depends/libhdhomerun/hdhomerun_device_selector.c \
depends/libhdhomerun/hdhomerun_discover.c \
depends/libhdhomerun/hdhomerun_os_posix.c \
depends/libhdhomerun/hdhomerun_pkt.c \
depends/libhdhomerun/hdhomerun_sock_posix.c \
depends/libhdhomerun/hdhomerun_video.c \
depends/sqlite/sqlite3.c \
src/addoncallbacks.cpp \
src/database.cpp \
src/dbextension.cpp \
src/discover.cpp \
src/hdhr.cpp \
src/livestream.cpp \
src/pvr.cpp \
src/pvrcallbacks.cpp \
Expand Down
File renamed without changes.
24 changes: 18 additions & 6 deletions msbuild.proj
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,54 @@

<!-- Linux/i686 -->
<MakeDir Directories="out\linux-i686" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_channels.c -o out/linux-i686/hdhomerun_channels.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_channelscan.c -o out/linux-i686/hdhomerun_channelscan.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_control.c -o out/linux-i686/hdhomerun_control.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_debug.c -o out/linux-i686/hdhomerun_debug.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_device.c -o out/linux-i686/hdhomerun_device.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_device_selector.c -o out/linux-i686/hdhomerun_device_selector.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_discover.c -o out/linux-i686/hdhomerun_discover.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_os_posix.c -o out/linux-i686/hdhomerun_os_posix.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_pkt.c -o out/linux-i686/hdhomerun_pkt.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_sock_posix.c -o out/linux-i686/hdhomerun_sock_posix.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -c depends/libhdhomerun/hdhomerun_video.c -o out/linux-i686/hdhomerun_video.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-i686) $(CFLAGS) -m32 -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_TEMP_STORE=3 -c depends/sqlite/sqlite3.c -o out/linux-i686/sqlite3.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/addoncallbacks.cpp -o out/linux-i686/addoncallbacks.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/database.cpp -o out/linux-i686/database.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/dbextension.cpp -o out/linux-i686/dbextension.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/discover.cpp -o out/linux-i686/discover.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/hdhr.cpp -o out/linux-i686/hdhr.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/livestream.cpp -o out/linux-i686/livestream.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/pvr.cpp -o out/linux-i686/pvr.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/pvrcallbacks.cpp -o out/linux-i686/pvrcallbacks.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/scheduler.cpp -o out/linux-i686/scheduler.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-i686) $(CXXFLAGS) -m32 -c src/sqlite_exception.cpp -o out/linux-i686/sqlite_exception.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 -m32 -shared out/linux-i686/addoncallbacks.o out/linux-i686/database.o out/linux-i686/dbextension.o out/linux-i686/discover.o out/linux-i686/hdhomerun_debug.o out/linux-i686/hdhomerun_discover.o out/linux-i686/hdhomerun_os_posix.o out/linux-i686/hdhomerun_pkt.o out/linux-i686/hdhomerun_sock_posix.o out/linux-i686/livestream.o out/linux-i686/pvr.o out/linux-i686/pvrcallbacks.o out/linux-i686/scheduler.o out/linux-i686/sqlite3.o out/linux-i686/sqlite_exception.o depends/libcurl/linux-i686/lib/libcurl.a depends/libssl/linux-i686/lib/libcrypto.a depends/libssl/linux-i686/lib/libssl.a depends/libz/linux-i686/lib/libz.a depends/libuuid/linux-i686/lib/libuuid.a -ldl -lpthread -o out/linux-i686/zuki.pvr.hdhomerundvr.so&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 -m32 -shared out/linux-i686/addoncallbacks.o out/linux-i686/database.o out/linux-i686/dbextension.o out/linux-i686/hdhr.o out/linux-i686/hdhomerun_channels.o out/linux-i686/hdhomerun_channelscan.o out/linux-i686/hdhomerun_control.o out/linux-i686/hdhomerun_debug.o out/linux-i686/hdhomerun_device.o out/linux-i686/hdhomerun_device_selector.o out/linux-i686/hdhomerun_discover.o out/linux-i686/hdhomerun_os_posix.o out/linux-i686/hdhomerun_pkt.o out/linux-i686/hdhomerun_sock_posix.o out/linux-i686/hdhomerun_video.o out/linux-i686/livestream.o out/linux-i686/pvr.o out/linux-i686/pvrcallbacks.o out/linux-i686/scheduler.o out/linux-i686/sqlite3.o out/linux-i686/sqlite_exception.o depends/libcurl/linux-i686/lib/libcurl.a depends/libssl/linux-i686/lib/libcrypto.a depends/libssl/linux-i686/lib/libssl.a depends/libz/linux-i686/lib/libz.a depends/libuuid/linux-i686/lib/libuuid.a -ldl -lpthread -o out/linux-i686/zuki.pvr.hdhomerundvr.so&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 -Idepends/sqlite -m32 -DSQLITE_ENABLE_JSON1=1 depends/sqlite/sqlite3.c depends/sqlite/shell.c -o out/linux-i686/sqlite3 -ldl -lpthread&quot;" ContinueOnError="false"/>

<!-- Linux/x86_64 -->
<MakeDir Directories="out\linux-x86_64" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_channels.c -o out/linux-x86_64/hdhomerun_channels.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_channelscan.c -o out/linux-x86_64/hdhomerun_channelscan.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_control.c -o out/linux-x86_64/hdhomerun_control.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_debug.c -o out/linux-x86_64/hdhomerun_debug.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_device.c -o out/linux-x86_64/hdhomerun_device.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_device_selector.c -o out/linux-x86_64/hdhomerun_device_selector.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_discover.c -o out/linux-x86_64/hdhomerun_discover.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_os_posix.c -o out/linux-x86_64/hdhomerun_os_posix.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_pkt.c -o out/linux-x86_64/hdhomerun_pkt.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_sock_posix.c -o out/linux-x86_64/hdhomerun_sock_posix.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -c depends/libhdhomerun/hdhomerun_video.c -o out/linux-x86_64/hdhomerun_video.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 $(CPPFLAGS-linux-x86_64) $(CFLAGS) -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_TEMP_STORE=3 -c depends/sqlite/sqlite3.c -o out/linux-x86_64/sqlite3.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/addoncallbacks.cpp -o out/linux-x86_64/addoncallbacks.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/database.cpp -o out/linux-x86_64/database.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/dbextension.cpp -o out/linux-x86_64/dbextension.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/discover.cpp -o out/linux-x86_64/discover.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/hdhr.cpp -o out/linux-x86_64/hdhr.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/livestream.cpp -o out/linux-x86_64/livestream.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/pvr.cpp -o out/linux-x86_64/pvr.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/pvrcallbacks.cpp -o out/linux-x86_64/pvrcallbacks.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/scheduler.cpp -o out/linux-x86_64/scheduler.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 $(CPPFLAGS-linux-x86_64) $(CXXFLAGS) -c src/sqlite_exception.cpp -o out/linux-x86_64/sqlite_exception.o&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 -shared out/linux-x86_64/addoncallbacks.o out/linux-x86_64/database.o out/linux-x86_64/dbextension.o out/linux-x86_64/discover.o out/linux-x86_64/hdhomerun_debug.o out/linux-x86_64/hdhomerun_discover.o out/linux-x86_64/hdhomerun_os_posix.o out/linux-x86_64/hdhomerun_pkt.o out/linux-x86_64/hdhomerun_sock_posix.o out/linux-x86_64/livestream.o out/linux-x86_64/pvr.o out/linux-x86_64/pvrcallbacks.o out/linux-x86_64/scheduler.o out/linux-x86_64/sqlite3.o out/linux-x86_64/sqlite_exception.o depends/libcurl/linux-x86_64/lib/libcurl.a depends/libssl/linux-x86_64/lib/libcrypto.a depends/libssl/linux-x86_64/lib/libssl.a depends/libz/linux-x86_64/lib/libz.a depends/libuuid/linux-x86_64/lib/libuuid.a -ldl -lpthread -o out/linux-x86_64/zuki.pvr.hdhomerundvr.so&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;g++-4.9 -shared out/linux-x86_64/addoncallbacks.o out/linux-x86_64/database.o out/linux-x86_64/dbextension.o out/linux-x86_64/hdhr.o out/linux-x86_64/hdhomerun_channels.o out/linux-x86_64/hdhomerun_channelscan.o out/linux-x86_64/hdhomerun_control.o out/linux-x86_64/hdhomerun_debug.o out/linux-x86_64/hdhomerun_device.o out/linux-x86_64/hdhomerun_device_selector.o out/linux-x86_64/hdhomerun_discover.o out/linux-x86_64/hdhomerun_os_posix.o out/linux-x86_64/hdhomerun_pkt.o out/linux-x86_64/hdhomerun_sock_posix.o out/linux-x86_64/hdhomerun_video.o out/linux-x86_64/livestream.o out/linux-x86_64/pvr.o out/linux-x86_64/pvrcallbacks.o out/linux-x86_64/scheduler.o out/linux-x86_64/sqlite3.o out/linux-x86_64/sqlite_exception.o depends/libcurl/linux-x86_64/lib/libcurl.a depends/libssl/linux-x86_64/lib/libcrypto.a depends/libssl/linux-x86_64/lib/libssl.a depends/libz/linux-x86_64/lib/libz.a depends/libuuid/linux-x86_64/lib/libuuid.a -ldl -lpthread -o out/linux-x86_64/zuki.pvr.hdhomerundvr.so&quot;" ContinueOnError="false"/>
<Exec Command="$(BashExe) -c &quot;gcc-4.9 -Idepends/sqlite -DSQLITE_ENABLE_JSON1=1 depends/sqlite/sqlite3.c depends/sqlite/shell.c -o out/linux-x86_64/sqlite3 -ldl -lpthread&quot;" ContinueOnError="false"/>

<!-- android-arm -->
Expand All @@ -109,7 +121,7 @@
<PropertyGroup>
<ZipperExe>&quot;$(SolutionDir)depends\build\zuki.build.tools.zipper.exe&quot;</ZipperExe>
<PackageVersion>$([System.IO.File]::ReadAllText($(SolutionDir)tmp\version\version.txt))</PackageVersion>
<PackageFile-win32>out\zuki.pvr.hdhomerundvr-win32-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-win32>
<PackageFile-windows-win32>out\zuki.pvr.hdhomerundvr-windows-win32-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-windows-win32>
<PackageFile-windows-x64>out\zuki.pvr.hdhomerundvr-windows-x64-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-windows-x64>
<PackageFile-linux-i686>out\zuki.pvr.hdhomerundvr-linux-i686-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-linux-i686>
<PackageFile-linux-x86_64>out\zuki.pvr.hdhomerundvr-linux-x86_64-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-linux-x86_64>
Expand All @@ -118,7 +130,7 @@
<PackageFile-android-x86>out\zuki.pvr.hdhomerundvr-android-x86-$(KodiBaseline)-$(PackageVersion).zip</PackageFile-android-x86>
</PropertyGroup>

<Exec Command="&quot;$(ZipperExe)&quot; create &quot;$(PackageFile-win32)&quot; manifest\win32.manifest" ContinueOnError="false"/>
<Exec Command="&quot;$(ZipperExe)&quot; create &quot;$(PackageFile-windows-win32)&quot; manifest\windows-win32.manifest" ContinueOnError="false"/>
<Exec Command="&quot;$(ZipperExe)&quot; create &quot;$(PackageFile-windows-x64)&quot; manifest\windows-x64.manifest" ContinueOnError="false"/>
<Exec Command="&quot;$(ZipperExe)&quot; create &quot;$(PackageFile-linux-i686)&quot; manifest\linux-i686.manifest" ContinueOnError="false"/>
<Exec Command="&quot;$(ZipperExe)&quot; create &quot;$(PackageFile-linux-x86_64)&quot; manifest\linux-x86_64.manifest" ContinueOnError="false"/>
Expand Down
2 changes: 1 addition & 1 deletion pvr.hdhomerundvr.sln
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "manifest", "manifest", "{03
manifest\android-x86.manifest = manifest\android-x86.manifest
manifest\linux-i686.manifest = manifest\linux-i686.manifest
manifest\linux-x86_64.manifest = manifest\linux-x86_64.manifest
manifest\win32.manifest = manifest\win32.manifest
manifest\windows-win32.manifest = manifest\windows-win32.manifest
manifest\windows-x64.manifest = manifest\windows-x64.manifest
EndProjectSection
EndProject
Expand Down
1 change: 1 addition & 0 deletions pvr.hdhomerundvr/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v1.0.5 (2017.03.xx)
- Fix problem with legacy devices detected through HTTP discovery adding a phantom channel and skewing the lineups
- Add "Stream LiveTV channels directly from tuner device(s)" advanced option

v1.0.4 (2017.03.14)
- Add "Use network broadcast for device discovery" option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ msgctxt "#30001"
msgid "Discovery Intervals"
msgstr ""

msgctxt "#30002"
msgid "Advanced"
msgstr ""

msgctxt "#30100"
msgid "Pause discovery while streaming Live TV channels"
msgstr ""
Expand Down Expand Up @@ -68,6 +72,10 @@ msgctxt "#30110"
msgid "Use network broadcast for device discovery"
msgstr ""

msgctxt "#30111"
msgid "Stream Live TV channels directly from tuner device(s)"
msgstr ""

msgctxt "#30201"
msgid "5 Minutes"
msgstr ""
Expand Down Expand Up @@ -155,3 +163,7 @@ msgstr ""
msgctxt "#30307"
msgid "Trigger recording rule discovery"
msgstr ""

msgctxt "#30401"
msgid "Please restart Kodi to apply the selected configuration changes"
msgstr ""
5 changes: 5 additions & 0 deletions pvr.hdhomerundvr/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<setting id="prepend_channel_numbers" label="30107" type="bool" default="false"/>
<setting id="delete_datetime_rules_after" label="30108" type="enum" lvalues="30213|30209|30210|30211|30212" default="3"/>
</category>

<category label="30001">
<setting id="discover_devices_interval" label="30101" type="enum" lvalues="30201|30202|30203|30204" default="0"/>
<setting id="discover_lineups_interval" label="30102" type="enum" lvalues="30201|30202|30203|30204|30205|30206|30207|30208" default="1"/>
Expand All @@ -17,4 +18,8 @@
<setting id="discover_episodes_interval" label="30106" type="enum" lvalues="30201|30202|30203|30204|30205|30206|30207|30208" default="6"/>
</category>

<category label="30002">
<setting id="use_direct_tuning" label="30111" type="bool" default="false"/>
</category>

</settings>
31 changes: 31 additions & 0 deletions src/addoncallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,21 @@ bool addoncallbacks::GetSetting(char const* name, void* value) const
return XbmcGetSetting(m_handle, m_callbacks, name, value);
}

//-----------------------------------------------------------------------------
// GetLocalizedString
//
// Retrieves a pointer to a localized string for this addon
//
// Arguments:
//
// code - Code of the localized resource string

char const* addoncallbacks::GetLocalizedString(int code) const
{
assert((XbmcGetLocalizedString) && (m_handle) && (m_callbacks));
return XbmcGetLocalizedString(m_handle, m_callbacks, code);
}

//-----------------------------------------------------------------------------
// addoncallbacks::Log
//
Expand Down Expand Up @@ -374,6 +389,22 @@ void* addoncallbacks::OpenFile(char const* filename, unsigned int flags) const
return XbmcOpenFile(m_handle, m_callbacks, filename, flags);
}

//-----------------------------------------------------------------------------
// addoncallbacks::QueueNotification
//
// Queues a notification message
//
// Arguments:
//
// type - Type of notification to be queued
// message - Notification message

void addoncallbacks::QueueNotification(queue_msg_t const type, char const* message) const
{
assert((XbmcQueueNotification) && (m_handle) && (m_callbacks));
return XbmcQueueNotification(m_handle, m_callbacks, type, message);
}

//-----------------------------------------------------------------------------
// addoncallbacks::ReadFile
//
Expand Down
10 changes: 10 additions & 0 deletions src/addoncallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ class addoncallbacks
// Gets the position within the specified file handle
int64_t GetFilePosition(void* handle) const;

// GetLocalizedString
//
// Retrieves a pointer to a localized string for this addon
char const* GetLocalizedString(int code) const;

// GetSetting
//
// Gets a setting for the current add-on
Expand All @@ -163,6 +168,11 @@ class addoncallbacks
// Open a handle to the specified file or URL
void* OpenFile(char const* filename, unsigned int flags) const;

// QueueNotification
//
// Queues a notification message
void QueueNotification(queue_msg_t const type, char const* message) const;

// ReadFile
//
// Reads data from an open file handle
Expand Down
Loading

0 comments on commit 1d53e42

Please sign in to comment.