Rename qrinfo -> QRInfo
This commit is contained in:
parent
14f1d95d2d
commit
46ac717538
|
@ -54,7 +54,7 @@ STATIC mp_obj_t qrio_qrdecoder_make_new(const mp_obj_type_t *type, size_t n_args
|
|||
return self;
|
||||
}
|
||||
|
||||
//| def decode(self, buffer: ReadableBuffer) -> List[qrinfo]:
|
||||
//| def decode(self, buffer: ReadableBuffer) -> List[QRInfo]:
|
||||
//| """Decode zero or more QR codes from the given image in L8 format"""
|
||||
//|
|
||||
STATIC mp_obj_t qrio_qrdecoder_decode(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
|
|
|
@ -60,7 +60,7 @@ MAKE_PRINTER(qrio, qrio_pixel_policy);
|
|||
|
||||
MAKE_ENUM_TYPE(qrio, PixelPolicy, qrio_pixel_policy);
|
||||
|
||||
//| class qrinfo:
|
||||
//| class QRInfo:
|
||||
//| """Information about a decoded QR code"""
|
||||
//|
|
||||
//| payload: bytes
|
||||
|
@ -75,7 +75,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
|
|||
.type = &mp_type_type
|
||||
},
|
||||
.flags = MP_TYPE_FLAG_EXTENDED,
|
||||
.name = MP_QSTR_qrinfo,
|
||||
.name = MP_QSTR_QRInfo,
|
||||
.print = namedtuple_print,
|
||||
.parent = &mp_type_tuple,
|
||||
.make_new = namedtuple_make_new,
|
||||
|
@ -96,7 +96,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
|
|||
|
||||
STATIC const mp_rom_map_elem_t qrio_module_globals_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_qrio) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_qrinfo), MP_ROM_PTR(&qrio_qrinfo_type_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_QRInfo), MP_ROM_PTR(&qrio_qrinfo_type_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_QRDecoder), MP_ROM_PTR(&qrio_qrdecoder_type_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_PixelPolicy), MP_ROM_PTR(&qrio_pixel_policy_type) },
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue