Skip to content

Commit bba7a7d

Browse files
Aigars Mahinovsaigarius
authored andcommitted
Python 3.14 compatibility changes
Author: Gianfranco Costamagna <locutusofborg@debian.org> Bug: https://bugs.debian.org/1123232
1 parent 30c9d8f commit bba7a7d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

dlt/core/core_300.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class cDLTMessage(ctypes.Structure):
8181
("p_extendedheader", ctypes.POINTER(cDltExtendedHeader)),
8282
]
8383
_pack_ = 1
84+
_layout_ = "ms"
8485

8586

8687
class cDltClient(ctypes.Structure): # pylint: disable=invalid-name

dlt/core/core_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class cDltServiceConnectionInfo(ctypes.Structure):
209209
("comid", DLT_ID_SIZE * ctypes.c_byte),
210210
]
211211
_pack_ = 1
212+
_layout_ = "ms"
212213

213214

214215
class MessageMode(object):
@@ -416,6 +417,7 @@ class cDltStorageHeader(ctypes.Structure):
416417
("ecu", ctypes.c_char * DLT_ID_SIZE),
417418
]
418419
_pack_ = 1
420+
_layout_ = "ms"
419421

420422
def __reduce__(self):
421423
return (cDltStorageHeader, (self.pattern, self.seconds, self.microseconds, self.ecu))
@@ -434,6 +436,7 @@ class cDltStandardHeader(ctypes.BigEndianStructure):
434436

435437
_fields_ = [("htyp", ctypes.c_uint8), ("mcnt", ctypes.c_uint8), ("len", ctypes.c_ushort)]
436438
_pack_ = 1
439+
_layout_ = "ms"
437440

438441
def __reduce__(self):
439442
return (cDltStandardHeader, (self.htyp, self.mcnt, self.len))
@@ -452,6 +455,7 @@ class cDltStandardHeaderExtra(ctypes.Structure):
452455

453456
_fields_ = [("ecu", ctypes.c_char * DLT_ID_SIZE), ("seid", ctypes.c_uint32), ("tmsp", ctypes.c_uint32)]
454457
_pack_ = 1
458+
_layout_ = "ms"
455459

456460
def __reduce__(self):
457461
return (cDltStandardHeaderExtra, (self.ecu, self.seid, self.tmsp))
@@ -476,6 +480,7 @@ class cDltExtendedHeader(ctypes.Structure):
476480
("ctid", ctypes.c_char * DLT_ID_SIZE),
477481
]
478482
_pack_ = 1
483+
_layout_ = "ms"
479484

480485
def __reduce__(self):
481486
return (cDltExtendedHeader, (self.msin, self.noar, self.apid, self.ctid))

0 commit comments

Comments
 (0)