From 6418ed4bb69a835768596f66ab5b514ea48b82cc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 4 Nov 2022 08:33:57 +0100 Subject: [PATCH] feat: use cimports for unmarshaller Variant and Message (#146) --- src/dbus_fast/_private/unmarshaller.pxd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dbus_fast/_private/unmarshaller.pxd b/src/dbus_fast/_private/unmarshaller.pxd index 43a0d083..4073cf0c 100644 --- a/src/dbus_fast/_private/unmarshaller.pxd +++ b/src/dbus_fast/_private/unmarshaller.pxd @@ -2,7 +2,8 @@ import cython -from ..signature import SignatureType +from ..message cimport Message +from ..signature cimport Variant cdef object MAX_UNIX_FDS_SIZE @@ -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 @@ -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 = &payload[offset] return u32p[0]