@@ -49,7 +49,7 @@ pub const WebUIError = error{
4949
5050/// webui error wrapper
5151pub const WebUIErrorInfo = struct {
52- num : i32 ,
52+ num : usize ,
5353 msg : [:0 ]const u8 ,
5454};
5555
@@ -311,7 +311,7 @@ pub fn interfaceSetResponseFileHandler(self: webui, response: []u8) void {
311311 c .webui_interface_set_response_file_handler (
312312 self .window_handle ,
313313 @ptrCast (response .ptr ),
314- response .len ,
314+ @intCast ( response .len ) ,
315315 );
316316}
317317
@@ -976,11 +976,11 @@ pub const WEBUI_VERSION: std.SemanticVersion = .{
976976 .major = 2 ,
977977 .minor = 5 ,
978978 .patch = 0 ,
979- .pre = "beta.2 " ,
979+ .pre = "beta.4 " ,
980980};
981981
982982/// Max windows, servers and threads
983- pub const WEBUI_MAX_IDS = 256 ;
983+ pub const WEBUI_MAX_IDS = 65535 ;
984984
985985/// Max allowed argument's index
986986pub const WEBUI_MAX_ARG = 16 ;
@@ -1065,18 +1065,22 @@ pub const Config = enum(c_int) {
10651065 /// root folder gets changed.
10661066 /// Default: False
10671067 folder_monitor ,
1068+ /// Allow multiple clients to connect to the same window,
1069+ /// This is helpful for web apps (non-desktop software),
1070+ /// Please see the documentation for more details.
1071+ /// Default: False
1072+ multi_client ,
10681073 /// Allow or prevent WebUI from adding `webui_auth` cookies.
10691074 /// WebUI uses these cookies to identify clients and block
10701075 /// unauthorized access to the window content using a URL.
10711076 /// Please keep this option to `True` if you want only a single
10721077 /// client to access the window content.
10731078 /// Default: True
1074- multi_client ,
1075- /// Allow multiple clients to connect to the same window,
1076- /// This is helpful for web apps (non-desktop software),
1077- /// Please see the documentation for more details.
1078- /// Default: True
10791079 use_cookies ,
1080+ /// If the backend uses asynchronous operations, set this
1081+ /// option to `True`. This will make WebUI wait until the
1082+ /// backend sets a response using `webui_return_x()`.
1083+ asynchronous_response ,
10801084};
10811085
10821086pub const Event = extern struct {
0 commit comments