qtbridge_runtime/rustobjectgetter.rs
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only
3
4#[cxx::bridge]
5pub mod ffi {
6 unsafe extern "C++" {
7 include!("qtbridge-type-lib/src/generated/core/qobject/cpp/qobject.h");
8 type QObject = qtbridge_type_lib::QObject;
9 }
10
11 unsafe extern "C++" {
12 include!("cpp/rustobjectgetter.h");
13
14 #[rust_name = "get_rust_proxy"]
15 fn getRustProxy(qobj: &QObject) -> *const u8;
16 }
17}
18
19pub use ffi::get_rust_proxy;