diff --git a/src/zeroconf/_dns.pxd b/src/zeroconf/_dns.pxd index e41ac4c3..5ff98a8d 100644 --- a/src/zeroconf/_dns.pxd +++ b/src/zeroconf/_dns.pxd @@ -134,7 +134,7 @@ cdef class DNSService(DNSRecord): cdef class DNSNsec(DNSRecord): cdef public cython.int _hash - cdef public object next_name + cdef public str next_name cdef public cython.list rdtypes cdef _fast_init(self, str name, cython.uint type_, cython.uint class_, cython.float ttl, str next_name, cython.list rdtypes, double created) diff --git a/src/zeroconf/_protocol/outgoing.pxd b/src/zeroconf/_protocol/outgoing.pxd index fa1aeebc..bb9730b8 100644 --- a/src/zeroconf/_protocol/outgoing.pxd +++ b/src/zeroconf/_protocol/outgoing.pxd @@ -108,6 +108,8 @@ cdef class DNSOutgoing: cpdef void write_string(self, cython.bytes value) + cpdef void write_character_string(self, cython.bytes value) + @cython.locals(utfstr=bytes) cdef void _write_utf(self, cython.str value)