summaryrefslogtreecommitdiffstats
path: root/cython/property_list_service.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/property_list_service.pxi')
-rw-r--r--cython/property_list_service.pxi15
1 files changed, 15 insertions, 0 deletions
diff --git a/cython/property_list_service.pxi b/cython/property_list_service.pxi
new file mode 100644
index 0000000..9b3f694
--- /dev/null
+++ b/cython/property_list_service.pxi
@@ -0,0 +1,15 @@
+cdef class PropertyListService:
+ cpdef send(self, plist.Node node):
+ cdef plist.Node n = node
+ cdef BaseError err = self._send(n._c_node)
+ if err: raise err
+
+ cpdef plist.Node receive(self):
+ cdef plist.plist_t c_node = NULL
+ cdef BaseError err = self._receive(&c_node)
+ if err: raise err
+
+ return plist.plist_t_to_node(c_node)
+
+ cdef _send(self, plist.plist_t node): pass
+ cdef _receive(self, plist.plist_t* c_node): pass