Skip to main content

Module util

Module util 

Source
Expand description

Small FFI utilities shared by the higher-level modules.

Structs§

COptions
A pinned, owned array of cpdb_option_t with backing CString storage.

Functions§

cstr_to_string
Converts a borrowed C string into an owned String.
cstr_to_string_and_g_free
Same as cstr_to_string but frees the underlying buffer with g_free.
to_c_options
Converts a slice of (name, value) pairs into a COptions suitable for passing to cpdb-libs.