From d0640763e648d441510afeb5939106eb8d48731c Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 22:42:06 +0100 Subject: Timers WIP Added getID3 --- bin/jsonapi.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bin/jsonapi.php') diff --git a/bin/jsonapi.php b/bin/jsonapi.php index 0f922c2..8f144d9 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -126,6 +126,24 @@ function getStreamStatus($session) return json_encode($ret); } +function getTimers() +{ + $ret = array(); + + $ret['timer'] = vdrlisttimers(); + + return json_encode($ret); +} + +function delTimer($id) +{ + $ret = vdrdeltimer($id); + + return json_encode($ret); +} + + + function getRunningSessions() { $ret = array(); -- cgit v1.2.3