pub type pw_impl_module_init_func_t = Option<unsafe extern "C" fn(module: *mut pw_impl_module, args: *const c_char) -> c_int>;
Expand description

Module init function signature

\param module A \ref pw_impl_module \param args Arguments to the module \return 0 on success, < 0 otherwise with an errno style error

A module should provide an init function with this signature. This function will be called when a module is loaded.

Aliased Type§

enum pw_impl_module_init_func_t {
    None,
    Some(unsafe extern "C" fn(_: *mut pw_impl_module, _: *const i8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut pw_impl_module, _: *const i8) -> i32)

Some value of type T.