1 module libwasm.bindings.WebrtcGlobalInformation;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.RTCStatsReport;
7 
8 @safe:
9 nothrow:
10 
11 struct WebrtcGlobalInformation {
12   nothrow:
13   JsHandle handle;
14   alias handle this;
15   this(Handle h) {
16     this.handle = JsHandle(h);
17   }
18   void getAllStats()(WebrtcGlobalStatisticsCallback callback, string pcIdFilter) {
19     WebrtcGlobalInformation_getAllStats(this.handle, callback, pcIdFilter);
20   }
21   void getAllStats()(WebrtcGlobalStatisticsCallback callback) {
22     WebrtcGlobalInformation_getAllStats_0(this.handle, callback);
23   }
24   void clearAllStats()() {
25     Object_Call__void(this.handle, "clearAllStats");
26   }
27   void getLogging()(string pattern, WebrtcGlobalLoggingCallback callback) {
28     WebrtcGlobalInformation_getLogging(this.handle, pattern, callback);
29   }
30   void clearLogging()() {
31     Object_Call__void(this.handle, "clearLogging");
32   }
33   void debugLevel()(int debugLevel) {
34     Object_Call_int__void(this.handle, "debugLevel", debugLevel);
35   }
36   int debugLevel()() {
37     return Object_Getter__int(this.handle, "debugLevel");
38   }
39   void aecDebug()(bool aecDebug) {
40     Object_Call_bool__void(this.handle, "aecDebug", aecDebug);
41   }
42   bool aecDebug()() {
43     return Object_Getter__bool(this.handle, "aecDebug");
44   }
45   void aecDebugLogDir()(string aecDebugLogDir) {
46     Object_Call_string__void(this.handle, "aecDebugLogDir", aecDebugLogDir);
47   }
48   string aecDebugLogDir()() {
49     return Object_Getter__string(this.handle, "aecDebugLogDir");
50   }
51 }
52 alias WebrtcGlobalLoggingCallback = void delegate(Sequence!(string));
53 alias WebrtcGlobalStatisticsCallback = void delegate(WebrtcGlobalStatisticsReport);
54 struct WebrtcGlobalStatisticsReport {
55   nothrow:
56   JsHandle handle;
57   alias handle this;
58   this(Handle h) {
59     this.handle = JsHandle(h);
60   }
61   static auto create() {
62     return WebrtcGlobalStatisticsReport(libwasm_add__object());
63   }
64   void reports()(scope ref Sequence!(RTCStatsReportInternal) reports) {
65     Object_Call_Handle__void(this.handle, "reports", reports.handle);
66   }
67   auto reports()() {
68     return Sequence!(RTCStatsReportInternal)(Object_Getter__Handle(this.handle, "reports"));
69   }
70 }
71 
72 
73 extern (C) void WebrtcGlobalInformation_getAllStats(Handle, WebrtcGlobalStatisticsCallback, string);
74 extern (C) void WebrtcGlobalInformation_getAllStats_0(Handle, WebrtcGlobalStatisticsCallback);
75 extern (C) void WebrtcGlobalInformation_getLogging(Handle, string, WebrtcGlobalLoggingCallback);