From b2315840b26a7ae5c38b0f9ed25e597f320c545e Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 14 Jul 2025 23:14:11 +0100 Subject: New upstream version 6.0.24.75+repack --- CommonCode.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'CommonCode.c') diff --git a/CommonCode.c b/CommonCode.c index ecac115..9c0032d 100644 --- a/CommonCode.c +++ b/CommonCode.c @@ -2142,7 +2142,16 @@ int CanPortDigi(int Port) return TRUE; } -struct PORTCONTROL * APIENTRY GetPortTableEntryFromPortNum(int portnum) +DllExport int APIENTRY GetPortHardwareType(struct PORTCONTROL *PORT) +{ + if (PORT) + return PORT->Hardware; + + return 0; +} + + +DllExport struct PORTCONTROL * APIENTRY GetPortTableEntryFromPortNum(int portnum) { struct PORTCONTROL * PORTVEC = PORTTABLE; -- cgit v1.2.3