Skip to content

Commit cfabda6

Browse files
authored
chore(gap,utils): drop stale .pxd declarations and align argument names (#223)
1 parent de2493e commit cfabda6

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/bluetooth_data_tools/gap.pxd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ cdef object _cached_uint16_bytes_as_uuid
1515
cdef object _cached_uint32_bytes_as_uuid
1616
cdef object _cached_uint128_bytes_as_uuid
1717
cdef object _cached_parse_advertisement_data
18-
cdef object _cached_parse_advertisement_data_tuple
1918
cdef object _cached_from_bytes_signed
2019

2120
cdef object _LOGGER
@@ -46,7 +45,6 @@ cpdef parse_advertisement_data(object data)
4645

4746
@cython.locals(
4847
gap_data="const unsigned char *",
49-
gap_value=cython.bytes,
5048
gap_type_num="unsigned char",
5149
total_length=cython.uint,
5250
length="unsigned char",
@@ -57,6 +55,6 @@ cpdef parse_advertisement_data(object data)
5755
)
5856
cpdef _uncached_parse_advertisement_bytes(bytes gap_bytes)
5957

60-
cpdef _uncached_parse_advertisement_data(bytes gap_bytes)
58+
cpdef _uncached_parse_advertisement_data(bytes data)
6159

6260
cpdef _uncached_parse_advertisement_tuple(tuple data)

src/bluetooth_data_tools/utils.pxd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
cdef object L_PACK
2-
cpdef object mac_to_int(str mac)
1+
cpdef object mac_to_int(str address)

0 commit comments

Comments
 (0)