diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-10-28 13:17:23 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-11-13 17:19:05 +1100 |
commit | 3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7 (patch) | |
tree | a500b6f65de0b776722d007dcae65a0dec1d9fbb /extmod/modbluetooth.h | |
parent | c75ce379100993f41a7502986146e735367cf8aa (diff) | |
download | micropython-3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7.tar.gz micropython-3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7.zip |
extmod/modbluetooth: Make UUID type accessible outside modbluetooth.c.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r-- | extmod/modbluetooth.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index 2df4c3c25f..618939ab18 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -135,7 +135,7 @@ _IRQ_GATTS_INDICATE_DONE = const(20) _IRQ_MTU_EXCHANGED = const(21) */ -// Common UUID type. +// bluetooth.UUID type. // Ports are expected to map this to their own internal UUID types. // Internally the UUID data is little-endian, but the user should only // ever see this if they use the buffer protocol, e.g. in order to @@ -147,6 +147,8 @@ typedef struct { uint8_t data[16]; } mp_obj_bluetooth_uuid_t; +extern const mp_obj_type_t mp_type_bluetooth_uuid; + ////////////////////////////////////////////////////////////// // API implemented by ports (i.e. called from modbluetooth.c): |