openvino-sys 0.10.0

Low-level bindings for OpenVINO (use the `openvino` crate for easier-to-use bindings).
Documentation
#[doc(hidden)]
#[macro_export]
macro_rules! link {
    (
        $(
            unsafe extern "C" {
                $(#[doc=$doc:expr])*
                $(#[cfg($cfg:meta)])*
                pub fn $name:ident($($pname:ident: $pty:ty),* $(,)?$(,...)?) $(-> $ret:ty)*;
            }
        )+
    ) => (
        /// When compiled as a dynamically-linked library, this function does nothing. It exists to
        /// provide a consistent API with the runtime-linked version.
        ///
        /// # Errors
        ///
        /// This version never fails.
        pub fn load() -> Result<(), String> {
            Ok(())
        }

        /// When compiled as a dynamically-linked library, this function does nothing. The library
        /// is already linked at compile time, so the `path` parameter is ignored. It exists to
        /// provide a consistent API with the runtime-linked version.
        ///
        /// # Errors
        ///
        /// This version never fails.
        pub fn load_from(_path: std::path::PathBuf) -> Result<(), String> {
            Ok(())
        }

        // Re-export all of the shared functions as-is.
        extern "C" {
            $(
                $(#[doc=$doc])*
                $(#[cfg($cfg)])*
                pub fn $name($($pname: $pty), *) $(-> $ret)*;
            )+
        }
    )
}