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

Commit de0e46b

Browse files
fabsi88Stephan Dilly
authored andcommitted
added powerstate method without param for fetching standby state
1 parent d2e3727 commit de0e46b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ __dummy.html
44
*.o
55
*.obj
66
__test__*__
7+
8+
dub\.selections\.json

source/openwebif/api.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,12 @@ interface OpenWebifApi {
214214
///
215215
@method(HTTPMethod.GET)
216216
RecordNow recordnow();
217-
/// powerstate expects 0 for toggle standby, 1 for deep stanbdy, 2 reboot box, 3 restart gui */
217+
/// powerstate expects 0 for toggle standby, 1 for deep stanbdy, 2 reboot box, 3 restart gui
218218
@method(HTTPMethod.GET)
219219
PowerState powerstate(int newstate);
220+
///
221+
@method(HTTPMethod.GET)
222+
PowerState powerstate();
220223
///
221224
Json message(string text, int type, int timeout);
222225
}

0 commit comments

Comments
 (0)