Skip to content

Commit

Permalink
pxd needed at the root
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Sep 30, 2023
1 parent 41d46f9 commit 21131c4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions rdp_p.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cdef extern from "header.h":
struct ExternalArray:
void* data
size_t len

cdef extern from "header.h":
struct InternalArray:
void* data
size_t len

cdef InternalArray simplify_rdp_ffi(ExternalArray, double epsilon);
cdef InternalArray simplify_rdp_idx_ffi(ExternalArray, double epsilon);
cdef InternalArray simplify_visvalingam_ffi(ExternalArray, double epsilon);
cdef InternalArray simplify_visvalingam_idx_ffi(ExternalArray, double epsilon);
cdef InternalArray simplify_visvalingamp_ffi(ExternalArray, double epsilon);
cdef void drop_float_array(InternalArray coords);
cdef void drop_usize_array(InternalArray coords);

0 comments on commit 21131c4

Please sign in to comment.