Skip to content

Commit

Permalink
_test: will hold test related functions. Added _io_uring_cqe_shift
Browse files Browse the repository at this point in the history
& `_io_uring_cqe_shift`
  • Loading branch information
YoSTEALTH committed Apr 21, 2024
1 parent e9c1ce0 commit f311df9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liburing/_test.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .lib.uring cimport *
from .queue cimport *
13 changes: 13 additions & 0 deletions src/liburing/_test.pyx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cpdef bint _io_uring_cqe_shift(io_uring ring):
'''
Note
- This function is used only to test defines.
'''
return __io_uring_cqe_shift(&ring.ptr)

cpdef int _io_uring_cqe_index(io_uring ring, unsigned int ptr, unsigned int mask):
'''
Note
- This function is used only to test defines.
'''
return __io_uring_cqe_index(&ring.ptr, ptr, mask)

0 comments on commit f311df9

Please sign in to comment.