diff options
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 11 |
1 files changed, 10 insertions, 1 deletions
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;
|
