Added seqcaStats routine, returns CA channel count information.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-branch-2-0/src/seq/seqCom.h new-branch-2-0/src/seq/seqCom.h
--- old-branch-2-0/src/seq/seqCom.h 2022-11-28 23:27:24.295935963 +0100
+++ new-branch-2-0/src/seq/seqCom.h 2022-11-28 23:27:24.295935963 +0100
@@ -202,6 +202,7 @@
epicsShareFunc long epicsShareAPI seqShow (epicsThreadId);
epicsShareFunc long epicsShareAPI seqChanShow (epicsThreadId, char *);
epicsShareFunc long epicsShareAPI seqcar(int level);
+epicsShareFunc void epicsShareAPI seqcaStats(int *pchans, int *pdiscon);
epicsShareFunc long epicsShareAPI seqQueueShow (epicsThreadId tid);
epicsShareFunc long epicsShareAPI seqStop (epicsThreadId);
epicsShareFunc void epicsShareAPI
diff -rN -u old-branch-2-0/src/seq/seq_qry.c new-branch-2-0/src/seq/seq_qry.c
--- old-branch-2-0/src/seq/seq_qry.c 2022-11-28 23:27:24.295935963 +0100
+++ new-branch-2-0/src/seq/seq_qry.c 2022-11-28 23:27:24.295935963 +0100
@@ -297,6 +297,13 @@
stats.nProgs, stats.nChans, stats.nConn, diss);
return diss;
}
+
+void epicsShareAPI seqcaStats(int *pchans, int *pdiscon) {
+ struct seqStats stats = {0, 0, 0, 0};
+ seqTraverseProg(seqcarCollect, (void *) &stats);
+ if (pchans) *pchans = stats.nChans;
+ if (pdiscon) *pdiscon = stats.nChans - stats.nConn;
+}
/*
* seqQueueShow() - Show syncQ queue information for a state program.
*/
patch 75f583f6c2c791408d176ffe22ef766504461e43
Author: Andrew Johnson <anj@aps.anl.gov>
Date: Wed Jul 23 00:24:01 CEST 2008
* Added seqcaStats routine, returns CA channel count information