TPEXT_ADDB4POLLCB(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

tpext_addb4pollcb - XATMI extension, before poll callback add

2. SYNOPSIS

#include <atmi.h>

int tpext_addb4pollcb(int (*p_b4pollcb)(void));

Link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm

3. DESCRIPTION

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.

4. RETURN VALUE

On success, tpext_addb4pollcb() return zero; on error, -1 is returned, with tperrno set to indicate the error.

5. ERRORS

Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.

TPEINVAL p_b4pollcb paramter is NULL.

6. EXAMPLE

See atmitest/test008_extensions/atmisv.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

tpext_delb4pollcb(3)

9. COPYING

© Mavimax, Ltd