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
5a045ed1
Commit
5a045ed1
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9910a23b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+12
-10
No files found.
wcfs/internal/_wcfs.pyx
View file @
5a045ed1
...
...
@@ -37,11 +37,6 @@ cdef extern from "wcfs_misc.h" nogil:
cbool
operator
==
(
const
error
&
)
const
cbool
operator
!=
(
const
error
&
)
const
cdef
extern
from
"wcfs_misc.h"
namespace
"context"
nogil
:
cppclass
IContext
"Context"
:
pass
cdef
extern
from
"wcfs_watchlink.h"
nogil
:
cppclass
WatchLink
:
error
close
()
...
...
@@ -57,8 +52,6 @@ cdef extern from "wcfs.h" nogil:
pair
[
pWatchLink
,
error
]
_openwatch
()
# XXX pair instead of tuple
from
golang
cimport
topyexc
cdef
class
PyWCFS
:
cdef
WCFS
wc
...
...
@@ -91,10 +84,9 @@ cdef class PyWatchLink:
# XXX recvReq
#def sendReq(PyWatchLink pywlink, IContext *ctx, string req): # -> reply(string)
def
sendReq
(
PyWatchLink
pywlink
,
ctx
,
string
req
):
# -> reply(string)
def
sendReq
(
PyWatchLink
pywlink
,
PyContext
pyctx
,
string
req
):
# -> reply(string)
with
nogil
:
_
=
wlink_sendReq_pyexc
(
pywlink
.
wlink
,
ctx
,
req
)
_
=
wlink_sendReq_pyexc
(
pywlink
.
wlink
,
pyctx
.
ctx
,
req
)
reply
=
_
.
first
err
=
_
.
second
...
...
@@ -109,9 +101,19 @@ cdef class PyPinReq:
pass
cdef
extern
from
"wcfs_misc.h"
nogil
:
cppclass
IContext
"context::Context"
:
pass
cdef
class
PyContext
:
cdef
IContext
*
ctx
# ---- misc ----
from
golang
cimport
topyexc
cdef
nogil
:
pair
[
pWatchLink
,
error
]
wcfs_openwatch_pyexc
(
WCFS
*
wcfs
)
except
+
topyexc
:
...
...
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