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
744cff7e
Commit
744cff7e
authored
Dec 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
116d5481
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+1
-1
wcfs/internal/_wcfs.pxd
wcfs/internal/_wcfs.pxd
+18
-0
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+1
-6
No files found.
bigfile/_file_zodb.pyx
View file @
744cff7e
...
...
@@ -151,7 +151,7 @@ cdef nogil:
# XXX wconn is maintained and kept in sync with zconn.
# XXX simultaneous call?
# XXX move -> .py ?
cdef
pywconnOf
(
zconn
):
cdef
wcfs
.
PyConn
pywconnOf
(
zconn
):
assert
isinstance
(
zconn
,
ZConnection
)
assert
zconn
.
opened
# XXX needed
...
...
wcfs/internal/_wcfs.pxd
View file @
744cff7e
...
...
@@ -99,3 +99,21 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
# FileH.X = FileH->X in C++
# XXX add mmap?
pass
# ---- python bits ----
cdef
class
PyWCFS
:
cdef
WCFS
wc
cdef
class
PyConn
:
cdef
Conn
wconn
cdef
class
PyFileH
:
cdef
FileH
wfileh
cdef
class
PyWatchLink
:
cdef
WatchLink
wlink
cdef
class
PyPinReq
:
cdef
PinReq
pinreq
wcfs/internal/_wcfs.pyx
View file @
744cff7e
...
...
@@ -36,10 +36,9 @@ cdef extern from *:
from
ZODB.utils
import
p64
,
u64
# XXX hack, why it is needed? (likely top-level wendelin.* redirector
from
wcfs.internal._wcfs
cimport
*
#
from wcfs.internal._wcfs cimport *
cdef
class
PyWCFS
:
cdef
WCFS
wc
property
mountpoint
:
def
__get__
(
PyWCFS
pywc
):
...
...
@@ -63,7 +62,6 @@ cdef class PyWCFS:
cdef
class
PyConn
:
cdef
Conn
wconn
def
__dealloc__
(
PyConn
pywconn
):
pywconn
.
wconn
=
nil
...
...
@@ -90,7 +88,6 @@ cdef class PyConn:
# XXX resync
cdef
class
PyFileH
:
cdef
FileH
wfileh
def
__dealloc__
(
PyFileH
pywfileh
):
pywfileh
.
wfileh
=
nil
...
...
@@ -98,7 +95,6 @@ cdef class PyFileH:
# ----------------------------------------
cdef
class
PyWatchLink
:
cdef
WatchLink
wlink
def
__init__
(
PyWatchLink
pywlink
,
PyWCFS
pywc
):
with
nogil
:
...
...
@@ -169,7 +165,6 @@ cdef class PyWatchLink:
cdef
class
PyPinReq
:
cdef
PinReq
pinreq
property
foid
:
def
__get__
(
PyPinReq
pypin
):
...
...
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