Skip to main content

lumen_query

Function lumen_query 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lumen_query( selector: *const c_char, out_list: *mut LumenNodeList, ) -> LumenStatus
Expand description

Run a CSS selector against the current DOM snapshot, writing the matches (document order) into *out_list. On success the caller owns the list and must release it with lumen_nodelist_free. A bad selector returns LumenStatus::ErrCss. Thread-safe.