Add a typemap to represent the AVRPART signature as Python bytes.

This commit is contained in:
Joerg Wunsch
2024-03-15 17:27:17 +01:00
parent 920b964af9
commit c9cee81281

View File

@@ -168,6 +168,10 @@ typedef struct avrmem AVRMEM;
// libavrdude itself, so only map things to the Python level that are
// needed there.
%typemap(out) unsigned char signature[3] {
$result = PyBytes_FromStringAndSize($1, 3);
}
typedef struct avrpart {
const char * desc; /* long part name */
const char * id; /* short part name */