summaryrefslogtreecommitdiff
path: root/WinRPR.c
diff options
context:
space:
mode:
Diffstat (limited to 'WinRPR.c')
-rw-r--r--WinRPR.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/WinRPR.c b/WinRPR.c
index 391edc9..f12971e 100644
--- a/WinRPR.c
+++ b/WinRPR.c
@@ -34,7 +34,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
#include "CHeaders.h"
-int (WINAPI FAR *GetModuleFileNameExPtr)();
+extern int (WINAPI FAR *GetModuleFileNameExPtr)();
extern int (WINAPI FAR *EnumProcessesPtr)();
#include "tncinfo.h"
@@ -98,7 +98,7 @@ BOOL KAMStartPort(struct PORTCONTROL * PORT);
BOOL KAMStopPort(struct PORTCONTROL * PORT);
-extern VOID TRKSuspendPort(struct TNCINFO * TNC);
+extern VOID TRKSuspendPort(struct TNCINFO * TNC, struct TNCINFO * ThisTNC);
extern VOID TRKReleasePort(struct TNCINFO * TNC);
extern VOID CloseDebugLogFile(int Port);
extern BOOL OpenDebugLogFile(int Port);
@@ -495,6 +495,14 @@ ok:
// 100 mS Timer.
+ // G7TAJ's code to record activity for stats display
+
+ if ( TNC->BusyFlags && CDBusy )
+ TNC->PortRecord->PORTCONTROL.ACTIVE += 2;
+
+ if ( TNC->PTTState )
+ TNC->PortRecord->PORTCONTROL.SENDING += 2;
+
// See if waiting for connect after changing MYCALL
if (TNC->SlowTimer)