[rust] add NCDIRECT_OPTION[_VERY]_VERBOSE consts

This commit is contained in:
joseLuís 2021-06-19 09:49:39 +02:00
parent 67e2f016e8
commit d38a63ca04
2 changed files with 12 additions and 0 deletions

View File

@ -157,6 +157,8 @@ pub use ffi::{
// NCDIRECT_OPTION_INHIBIT_CBREAK, // NCDIRECT_OPTION_INHIBIT_CBREAK,
// NCDIRECT_OPTION_INHIBIT_SETLOCALE, // NCDIRECT_OPTION_INHIBIT_SETLOCALE,
// NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS, // NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS,
// NCDIRECT_OPTION_VERBOSE
// NCDIRECT_OPTION_VERY_VERBOSE
#[doc(inline)] #[doc(inline)]
pub use ffi::{ pub use ffi::{

View File

@ -113,3 +113,13 @@ pub const NCDIRECT_OPTION_INHIBIT_SETLOCALE: NcDirectFlags =
/// signal handlers. /// signal handlers.
pub const NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS: NcDirectFlags = pub const NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS: NcDirectFlags =
crate::bindings::ffi::NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS as NcDirectFlags; crate::bindings::ffi::NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS as NcDirectFlags;
///
pub const NCDIRECT_OPTION_VERBOSE: NcDirectFlags =
crate::bindings::ffi::NCDIRECT_OPTION_VERBOSE as NcDirectFlags;
/// Enable all diagnostics (equivalent to
/// [`NCLOGLEVEL_TRACE`][crate::NCLOGLEVEL_TRACE]).
/// Implies [`NCDIRECT_OPTION_VERBOSE`].
pub const NCDIRECT_OPTION_VERY_VERBOSE: NcDirectFlags =
crate::bindings::ffi::NCDIRECT_OPTION_VERY_VERBOSE as NcDirectFlags;