summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 22:42:06 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 22:42:06 +0100
commitd0640763e648d441510afeb5939106eb8d48731c (patch)
treef8542d1329646a3968ee8e6cf4640af103ee8aa6 /bin/jsonapi.php
parent56cb9c5e115fcf9f6e732d2b2cc95afff66c90ac (diff)
downloadistreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.gz
istreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.bz2
Timers WIP
Added getID3
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php18
1 files changed, 18 insertions, 0 deletions
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();