#![allow(clippy::result_large_err)]
#[cfg(not(feature = "live"))]
compile_error!("The 'live' feature must be enabled");
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
pub mod auth;
pub mod datatype;
pub mod datetime;
pub mod element;
pub mod event;
pub mod ffi;
pub mod message;
pub mod name;
pub mod value;
pub mod async_session;
pub mod correlation;
pub mod errors;
pub mod identity;
pub mod options;
pub mod request;
pub mod schema;
pub mod service;
pub mod session;
pub mod socks5;
pub mod subscription;
pub mod tls;
pub mod zfp;
pub use async_session::AsyncSession;
pub use auth::{
apply_session_identity_options, AuthApplication, AuthConfig, AuthOptions, AuthToken, AuthUser,
};
pub use correlation::CorrelationId;
pub use datatype::DataType;
pub use datetime::HighPrecisionDatetime;
pub use element::{ChildrenIter, Element, ValuesIter};
pub use errors::{BlpError, Result};
pub use event::{Event, EventType};
pub use identity::{EntitlementCheck, Identity, SeatType};
pub use message::Message;
pub use name::{clear_name_cache, name_cache_size, Name};
pub use request::Request;
pub use service::Service;
pub use session::{Session, SessionOptions};
pub use socks5::Socks5Config;
pub use subscription::SubscriptionList;
pub use value::{OwnedValue, Value};
pub use schema::{
Constant, ConstantList, Operation, SchemaElementDefinition, SchemaStatus, SchemaTypeDefinition,
};
pub fn sdk_version() -> (i32, i32, i32, i32) {
let (mut major, mut minor, mut patch, mut build) = (0, 0, 0, 0);
unsafe { ffi::blpapi_getVersionInfo(&mut major, &mut minor, &mut patch, &mut build) };
(major, minor, patch, build)
}