diff options
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-x | bin/jsonapi.php | 18 |
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(); |