From 564340b32ddc9bf8e255e467df01d143dd2138db Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 5 Jan 2013 19:11:45 +0000 Subject: [PATCH] timeshift: add new style capability check. --- src/main.c | 3 +++ src/timeshift.c | 2 +- src/timeshift.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6cff04cb..c546d7a1 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 afd4237a..2abe6678 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 eeb6baad..5281e8b5 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;