From b569889f216c3c09c9b7bc475d0f665e087e4e87 Mon Sep 17 00:00:00 2001 From: Stu Black Date: Tue, 9 Sep 2025 22:21:15 -0400 Subject: [PATCH] Expose RRetainImage from wrlib for Rust. --- wmakerlib/src/wrlib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wmakerlib/src/wrlib.rs b/wmakerlib/src/wrlib.rs index a267aad7..e9aa519f 100644 --- a/wmakerlib/src/wrlib.rs +++ b/wmakerlib/src/wrlib.rs @@ -25,4 +25,9 @@ pub struct Image { } pub mod ffi { + use super::Image; + + unsafe extern "C" { + pub fn RRetainImage(image: *mut Image) -> *mut Image; + } }