// file: poc-qt/poc006/src/qt_gst.rs

#[cxx::bridge]
pub mod ffi {
    unsafe extern "C++" {
        include!("qt_gst_helpers.h");

        type QQmlApplicationEngine = cxx_qt_lib::QQmlApplicationEngine;
        type QQuickItem;

        fn find_video_item(engine: Pin<&mut QQmlApplicationEngine>) -> *mut QQuickItem;
        unsafe fn bind_sink_widget(sink_ptr: usize, item: *mut QQuickItem) -> bool;
        fn schedule_pipeline_play(
            engine: Pin<&mut QQmlApplicationEngine>,
            pipeline_ptr: usize,
        ) -> bool;
    }
}
