From 2802f7659fbd273b2a62511cb257db27acc78ac8 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Wed, 12 Nov 2025 15:13:48 +0100 Subject: [PATCH] ffi: make C function private --- src/wrappers/point.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wrappers/point.rs b/src/wrappers/point.rs index 5cf1d93..b69f6f4 100644 --- a/src/wrappers/point.rs +++ b/src/wrappers/point.rs @@ -23,7 +23,16 @@ extern "C" { pub fn delete_point(shape: *mut PointShape); } -// Safe wrapper + extern "C" { + fn make_point(x: c_double, y: c_double, z: c_double) -> *mut PointShape; + fn coord_point( + shape: *const PointShape, + x: *mut c_double, + y: *mut c_double, + z: *mut c_double, + ); + fn delete_point(shape: *mut PointShape); + } pub struct Point { ptr: *mut PointShape,