summaryrefslogtreecommitdiffstats
path: root/cython/property_list_client.pxi
blob: 2689658d127e57c060679fa20aaec78ade691e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cdef class PropertyListClient(Base):
    cpdef send(self, plist.Node node):
        cdef plist.Node n = node
        self.handle_error(self._send(n._c_node))

    cpdef plist.Node receive(self):
        cdef plist.plist_t c_node = NULL
        self.handle_error(self._receive(&c_node))

        return plist.plist_t_to_node(c_node)

    cdef inline int16_t _send(self, plist.plist_t node): pass
    cdef inline int16_t _receive(self, plist.plist_t* c_node): pass