.TH CONNECTIONS_SET_ONDESTROY 3 "20 July 2015" "SNTLLv2" "SNTL Library Manual" .SH NAME connections_set_ondestroy \- Set callback for the connection links based on the connections set, called in case of link destroying .br .SH SYNOPSIS .B #include .sp #define connections_set_ondestroy(c, f) .br .sp .SH DESCRIPTION This macro should be used if you want to setup callback function fired upon a connection is closed or broken. .br This macro will set on .B c connections link set callback .B f which is a function pointer of the type: .br .sp .B typedef void (*ondestroy_t)(conn_t *); .br .sp This function will be called if connection link failed, broken etc. It will pass a pointer to the failed connection. .SH RETURN VALUE None. .SH ERRORS None. .SH BUGS None known yet. .SH EXAMPLE None. .SH APPLICATION USAGE None. .SH RATIONALE None. .SH SEE ALSO .BI connections_set_priv(3) , .BI connections_get_priv(3) , .BI connections_set_onpulse(3) .SH COPYRIGHT This is a proprietary software. See COPYING for further details. .br (c) Askele Group 2013-2015 .SH AUTHOR Alexander Vdolainen (vdo@askele.com)