]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: add new style capability check.
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 5 Jan 2013 19:11:45 +0000 (19:11 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Wed, 9 Jan 2013 21:26:52 +0000 (21:26 +0000)
src/main.c
src/timeshift.c
src/timeshift.h

index 6cff04cb38f97ce5828b1b4fc1acd77bb1d923fb..c546d7a15d116a57650042419219d34e8f915c8c 100644 (file)
@@ -128,6 +128,9 @@ const tvh_caps_t tvheadend_capabilities[] = {
 #endif
 #if ENABLE_IMAGECACHE
   { "imagecache", &imagecache_enabled },
+#endif
+#if ENABLE_TIMESHIFT
+  { "timeshift", &timeshift_enabled },
 #endif
   { NULL, NULL }
 };
index afd4237a361f271f2b1ab15445c7662d7fb4eb18..2abe6678ce3737bd2813947764dd439d5ae91575 100644 (file)
@@ -34,7 +34,7 @@
 
 static int timeshift_index = 0;
 
-int       timeshift_enabled;
+uint32_t  timeshift_enabled;
 int       timeshift_ondemand;
 char     *timeshift_path;
 int       timeshift_unlimited_period;
index eeb6baadc56878526a26921d43e8e11f7b4ee553..5281e8b5582dda9925476d97325ed337ec81bb49 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef __TVH_TIMESHIFT_H__
 #define __TVH_TIMESHIFT_H__
 
-extern int       timeshift_enabled;
+extern uint32_t  timeshift_enabled;
 extern int       timeshift_ondemand;
 extern char     *timeshift_path;
 extern int       timeshift_unlimited_period;