Skip to content

Commit

Permalink
feat: use cimports for unmarshaller Variant and Message (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Nov 4, 2022
1 parent a9c9370 commit 6418ed4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dbus_fast/_private/unmarshaller.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import cython

from ..signature import SignatureType
from ..message cimport Message
from ..signature cimport Variant


cdef object MAX_UNIX_FDS_SIZE
Expand Down Expand Up @@ -40,8 +41,6 @@ cdef object INT16_UNPACK_BIG_ENDIAN
cdef object UINT16_UNPACK_LITTLE_ENDIAN
cdef object UINT16_UNPACK_BIG_ENDIAN

cdef object Variant
cdef object Message
cdef object MESSAGE_TYPE_MAP
cdef object MESSAGE_FLAG_MAP
cdef object HEADER_MESSAGE_ARG_NAME
Expand Down Expand Up @@ -73,8 +72,6 @@ cdef unsigned int TOKEN_G_AS_INT

cdef object MARSHALL_STREAM_END_ERROR

cpdef get_signature_tree

cdef inline unsigned long _cast_uint32_native(const char * payload, unsigned int offset):
cdef unsigned long *u32p = <unsigned long *> &payload[offset]
return u32p[0]
Expand Down

0 comments on commit 6418ed4

Please sign in to comment.