By calling the
awTxCanPublish function you can determine if an event can be published. The following example contains an excerpt that shows the use of the
awTxCanPublish function to determine whether an event can be published:
. . .
err = awTxCanPublish(txclient,"APITest::Simple",&b);
if (!verifyNoError(__FILE__,"awTxCanPublish",__LINE__,err)) {
return 0;
}
. . .