Skip to content

Commit 248655f

Browse files
authored
feat: speed up writing outgoing dns records (#1259)
1 parent cd41743 commit 248655f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/zeroconf/_dns.pxd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
import cython
33

4+
from ._protocol.outgoing cimport DNSOutgoing
5+
46

57
cdef object _LEN_BYTE
68
cdef object _LEN_SHORT
@@ -66,6 +68,8 @@ cdef class DNSAddress(DNSRecord):
6668

6769
cdef _eq(self, DNSAddress other)
6870

71+
cpdef write(self, DNSOutgoing out)
72+
6973

7074
cdef class DNSHinfo(DNSRecord):
7175

@@ -75,6 +79,7 @@ cdef class DNSHinfo(DNSRecord):
7579

7680
cdef _eq(self, DNSHinfo other)
7781

82+
cpdef write(self, DNSOutgoing out)
7883

7984
cdef class DNSPointer(DNSRecord):
8085

@@ -84,6 +89,7 @@ cdef class DNSPointer(DNSRecord):
8489

8590
cdef _eq(self, DNSPointer other)
8691

92+
cpdef write(self, DNSOutgoing out)
8793

8894
cdef class DNSText(DNSRecord):
8995

@@ -92,6 +98,7 @@ cdef class DNSText(DNSRecord):
9298

9399
cdef _eq(self, DNSText other)
94100

101+
cpdef write(self, DNSOutgoing out)
95102

96103
cdef class DNSService(DNSRecord):
97104

@@ -104,6 +111,7 @@ cdef class DNSService(DNSRecord):
104111

105112
cdef _eq(self, DNSService other)
106113

114+
cpdef write(self, DNSOutgoing out)
107115

108116
cdef class DNSNsec(DNSRecord):
109117

@@ -113,6 +121,7 @@ cdef class DNSNsec(DNSRecord):
113121

114122
cdef _eq(self, DNSNsec other)
115123

124+
cpdef write(self, DNSOutgoing out)
116125

117126
cdef class DNSRRSet:
118127

0 commit comments

Comments
 (0)