Skip to content

Commit

Permalink
feat: set config on init, facility wrapper functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 4, 2024
1 parent 29e5f64 commit f1f54a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ pub:
bind_id usize // Bind ID
}

fn init() {
// Handle await internally per window with user-defined timouts.
C.webui_set_config(C.show_wait_connection, false)
}

// -- Definitions ---------------------
fn C.webui_new_window() Window
fn C.webui_new_window_id(win_id Window)
Expand Down Expand Up @@ -75,10 +80,9 @@ fn C.webui_delete_profile(win Window)
fn C.webui_get_parent_process_id(win Window) usize
fn C.webui_get_child_process_id(win Window) usize
fn C.webui_set_port(win Window, port usize) bool
fn C.webui_set_config(option usize, status bool) bool
fn C.webui_set_tls_certificate(certificate_pem &char, private_key_pem &char) bool

// fn C.webui_config(option Config, port usize) bool

// -- JavaScript ----------------------
fn C.webui_run(win Window, script &char)
fn C.webui_script(win Window, script &char, timeout usize, buffer &char, buffer_length usize) bool
Expand Down

0 comments on commit f1f54a9

Please sign in to comment.