Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
5d67756e
Commit
5d67756e
authored
Jan 08, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4bfc6d73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
wcfs/internal/_wcfs.pxd
wcfs/internal/_wcfs.pxd
+3
-0
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+3
-0
No files found.
wcfs/internal/_wcfs.pxd
View file @
5d67756e
...
@@ -106,6 +106,7 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
...
@@ -106,6 +106,7 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
pair
[
Mapping
,
error
]
mmap
"_ptr()->mmap"
(
int64_t
blk_start
,
int64_t
blk_len
)
pair
[
Mapping
,
error
]
mmap
"_ptr()->mmap"
(
int64_t
blk_start
,
int64_t
blk_len
)
cppclass
_Mapping
:
cppclass
_Mapping
:
FileH
fileh
int64_t
blk_start
int64_t
blk_start
int64_t
blk_stop
()
const
int64_t
blk_stop
()
const
uint8_t
*
mem_start
uint8_t
*
mem_start
...
@@ -115,6 +116,7 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
...
@@ -115,6 +116,7 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
cppclass
Mapping
(
refptr
[
_Mapping
]):
cppclass
Mapping
(
refptr
[
_Mapping
]):
# Mapping.X = Mapping->X in C++
# Mapping.X = Mapping->X in C++
FileH
fileh
"_ptr()->fileh"
int64_t
blk_start
"_ptr()->blk_start"
int64_t
blk_start
"_ptr()->blk_start"
int64_t
blk_stop
"_ptr()->blk_stop"
()
const
int64_t
blk_stop
"_ptr()->blk_stop"
()
const
uint8_t
*
mem_start
"_ptr()->mem_start"
uint8_t
*
mem_start
"_ptr()->mem_start"
...
@@ -139,6 +141,7 @@ cdef class PyFileH:
...
@@ -139,6 +141,7 @@ cdef class PyFileH:
cdef
class
PyMapping
:
cdef
class
PyMapping
:
cdef
Mapping
wmmap
cdef
Mapping
wmmap
cdef
readonly
PyFileH
fileh
cdef
class
PyWatchLink
:
cdef
class
PyWatchLink
:
cdef
WatchLink
wlink
cdef
WatchLink
wlink
...
...
wcfs/internal/_wcfs.pyx
View file @
5d67756e
...
@@ -106,8 +106,11 @@ cdef class PyFileH:
...
@@ -106,8 +106,11 @@ cdef class PyFileH:
if
err
!=
nil
:
if
err
!=
nil
:
raise
pyerr
(
err
)
raise
pyerr
(
err
)
assert
wmmap
.
fileh
.
eq
(
pywfileh
.
wfileh
)
cdef
PyMapping
pywmmap
=
PyMapping
.
__new__
(
PyMapping
)
cdef
PyMapping
pywmmap
=
PyMapping
.
__new__
(
PyMapping
)
pywmmap
.
wmmap
=
wmmap
pywmmap
.
wmmap
=
wmmap
pywmmap
.
fileh
=
pywfileh
return
pywmmap
return
pywmmap
# XXX for tests
# XXX for tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment