Function teaclave_client_sdk::bindings::teaclave_query_audit_logs
source · [−]#[no_mangle]
pub unsafe extern "C" fn teaclave_query_audit_logs(
client: &mut FrontendClient,
query: *const c_char,
log_buffer: *mut c_entry,
log_len: *mut size_t
) -> c_int
Expand description
Query audit logs according to query
. query
is the query statement for tantivy. The result
will be saved in the log_buffer
buffer with the corresponding log_len
argument set.
Remember to free the user and message inside c_entry to avoid memory leak.
The function returns 0 for success. On error, the function returns 1.
Safety
Inconsistent length of allocated buffer may caused overflow.