Commit dcca0784 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e9678fad
...@@ -43,13 +43,10 @@ cdef extern from "wcfs_watchlink.h" nogil: ...@@ -43,13 +43,10 @@ cdef extern from "wcfs_watchlink.h" nogil:
error close "_ptr()->close" () error close "_ptr()->close" ()
pair[string, error] sendReq "_ptr()->sendReq" (context.Context ctx, const string &req) pair[string, error] sendReq "_ptr()->sendReq" (context.Context ctx, const string &req)
#ctypedef WatchLink *pWatchLink # https://github.com/cython/cython/issues/534
cdef extern from "wcfs.h" nogil: cdef extern from "wcfs.h" nogil:
cppclass WCFS: cppclass WCFS:
string mountpoint string mountpoint
#pair[pWatchLink, error] _openwatch() # XXX pair instead of tuple
pair[WatchLink, error] _openwatch() # XXX pair instead of tuple pair[WatchLink, error] _openwatch() # XXX pair instead of tuple
...@@ -111,14 +108,11 @@ from golang cimport topyexc ...@@ -111,14 +108,11 @@ from golang cimport topyexc
cdef nogil: cdef nogil:
#pair[pWatchLink, error] wcfs_openwatch_pyexc(WCFS *wcfs) except +topyexc:
pair[WatchLink, error] wcfs_openwatch_pyexc(WCFS *wcfs) except +topyexc: pair[WatchLink, error] wcfs_openwatch_pyexc(WCFS *wcfs) except +topyexc:
return wcfs._openwatch() return wcfs._openwatch()
#error wlink_close_pyexc(WatchLink *wlink) except +topyexc:
error wlink_close_pyexc(WatchLink wlink) except +topyexc: error wlink_close_pyexc(WatchLink wlink) except +topyexc:
return wlink.close() return wlink.close()
#pair[string, error] wlink_sendReq_pyexc(WatchLink *wlink, context.Context ctx, const string &req) except +topyexc:
pair[string, error] wlink_sendReq_pyexc(WatchLink wlink, context.Context ctx, const string &req) except +topyexc: pair[string, error] wlink_sendReq_pyexc(WatchLink wlink, context.Context ctx, const string &req) except +topyexc:
return wlink.sendReq(ctx, req) return wlink.sendReq(ctx, req)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment