tpext_addb4pollcb — XATMI extension, before poll callback add
#include <atmi.h>
int tpext_addb4pollcb(int (*p_b4pollcb)(void));
Link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Function registers callback function which is activated when XATMI server’s main loop is going to poll for next message. The p_b4pollcb callback function in case of success shall return 0. If p_b4pollcb returns other value than 0, then XATMI server proceeds with shutdown.
This function is available only for XATMI servers.
On success, tpext_addb4pollcb() return zero; on error, -1 is returned, with tperrno set to indicate the error.