diff --git a/include/servicepoint.h b/include/servicepoint.h index 8fb7e84..5863ef5 100644 --- a/include/servicepoint.h +++ b/include/servicepoint.h @@ -225,6 +225,9 @@ typedef struct SPBitVec SPBitVec; */ typedef struct TypedCommand TypedCommand; +/** + * This is a type only used by cbindgen to have a type for pointers. + */ typedef struct UdpSocket UdpSocket; /** diff --git a/src/lib.rs b/src/lib.rs index a3efb85..47b21d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,4 +68,5 @@ pub(crate) unsafe fn heap_remove(x: NonNull) -> T { unsafe { *Box::from_raw(x.as_ptr()) } } +/// This is a type only used by cbindgen to have a type for pointers. pub struct UdpSocket; \ No newline at end of file