ffi: make C function private

This commit is contained in:
2025-11-12 15:13:48 +01:00
parent 422f08835e
commit 2802f7659f
+10 -1
View File
@@ -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,