From: Adam Sutton Date: Sat, 5 Jan 2013 19:11:45 +0000 (+0000) Subject: timeshift: add new style capability check. X-Git-Tag: v3.5~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564340b32ddc9bf8e255e467df01d143dd2138db;p=thirdparty%2Ftvheadend.git timeshift: add new style capability check. --- diff --git a/src/main.c b/src/main.c index 6cff04cb3..c546d7a15 100644 --- a/src/main.c +++ b/src/main.c @@ -128,6 +128,9 @@ const tvh_caps_t tvheadend_capabilities[] = { #endif #if ENABLE_IMAGECACHE { "imagecache", &imagecache_enabled }, +#endif +#if ENABLE_TIMESHIFT + { "timeshift", ×hift_enabled }, #endif { NULL, NULL } }; diff --git a/src/timeshift.c b/src/timeshift.c index afd4237a3..2abe6678c 100644 --- a/src/timeshift.c +++ b/src/timeshift.c @@ -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; diff --git a/src/timeshift.h b/src/timeshift.h index eeb6baadc..5281e8b55 100644 --- a/src/timeshift.h +++ b/src/timeshift.h @@ -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;