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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
9910a23b
Commit
9910a23b
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0a7da733
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+7
-2
No files found.
wcfs/internal/_wcfs.pyx
View file @
9910a23b
...
...
@@ -37,12 +37,16 @@ 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
()
#error recvReq(ctx, PinReq *rx_into)
pair
[
string
,
error
]
sendReq
(
ctx
,
const
string
&
req
)
pair
[
string
,
error
]
sendReq
(
IContext
*
ctx
,
const
string
&
req
)
ctypedef
WatchLink
*
pWatchLink
# https://github.com/cython/cython/issues/534
...
...
@@ -87,6 +91,7 @@ cdef class PyWatchLink:
# XXX recvReq
#def sendReq(PyWatchLink pywlink, IContext *ctx, string req): # -> reply(string)
def
sendReq
(
PyWatchLink
pywlink
,
ctx
,
string
req
):
# -> reply(string)
with
nogil
:
_
=
wlink_sendReq_pyexc
(
pywlink
.
wlink
,
ctx
,
req
)
...
...
@@ -115,5 +120,5 @@ cdef nogil:
error
wlink_close_pyexc
(
WatchLink
*
wlink
)
except
+
topyexc
:
return
wlink
.
close
()
pair
[
string
,
error
]
wlink_sendReq_pyexc
(
WatchLink
*
wlink
,
ctx
,
const
string
&
req
)
except
+
topyexc
:
pair
[
string
,
error
]
wlink_sendReq_pyexc
(
WatchLink
*
wlink
,
IContext
*
ctx
,
const
string
&
req
)
except
+
topyexc
:
return
wlink
.
sendReq
(
ctx
,
req
)
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