Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Commit 180cf53

Browse files
author
Stephan Dilly
authored
Merge pull request #2 from fabsi88/feature/epg-search
added epg search
2 parents af40c4c + 31fcdbd commit 180cf53

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

source/openwebif/api.d

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ struct CurrentServiceInfo
5959
string _ref;
6060

6161
}
62+
63+
///
64+
struct EPGSearchList
65+
{
66+
EPGSearch[] events;
67+
bool result;
68+
}
69+
70+
///
6271
struct CurrentServiceEPG
6372
{
6473
string sname;
@@ -69,6 +78,17 @@ struct CurrentServiceEPG
6978
string longdesc;
7079
}
7180

81+
///
82+
struct EPGSearch
83+
{
84+
string begin;
85+
string sname;
86+
string title;
87+
string sref;
88+
long begin_timestamp;
89+
long duration_sec;
90+
}
91+
7292
///
7393
struct CurrentService
7494
{
@@ -147,6 +167,9 @@ interface OpenWebifApi {
147167
///
148168
CurrentService getcurrent();
149169
///
170+
@method(HTTPMethod.GET)
171+
EPGSearchList epgsearch(string search);
172+
///
150173
TimerList timerlist();
151174
///
152175
@method(HTTPMethod.GET)

0 commit comments

Comments
 (0)