mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Add some optional params in methods
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -31,6 +31,11 @@ const SessionID = "9559320D92474062597D9875C664CAC0";
|
||||
const TargetID = "CFCD6EC01573CF29BB638E9DC0F52DDC";
|
||||
const BrowserContextID = "65618675CB7D3585A95049E9DFE95EA9";
|
||||
|
||||
const TargetFilter = struct {
|
||||
type: []const u8,
|
||||
exclude: bool,
|
||||
};
|
||||
|
||||
fn tagetSetAutoAttach(
|
||||
alloc: std.mem.Allocator,
|
||||
id: u64,
|
||||
@@ -40,7 +45,8 @@ fn tagetSetAutoAttach(
|
||||
const Params = struct {
|
||||
autoAttach: bool,
|
||||
waitForDebuggerOnStart: bool,
|
||||
flatten: ?bool = null,
|
||||
flatten: bool = true,
|
||||
filter: ?[]TargetFilter = null,
|
||||
};
|
||||
const params = try getParams(alloc, Params, scanner);
|
||||
std.log.debug("params {any}", .{params});
|
||||
|
||||
Reference in New Issue
Block a user