Commit b876cca4 authored by Kai Vehmanen's avatar Kai Vehmanen

Added tport_is_closed() and tport_is_shutdown() to the public interface.

darcs-hash:20061019144947-7659e-fa22ee095cac9c258a6d635f545ce8f63951581e.gz
parent 0bb50204
......@@ -37,6 +37,7 @@ libsofia-sip-ua:
- Added NUTAG_WITH(), nutag_with, NUTAG_WITH_CURRENT(),
nua_current_request(), NUTAG_WITH_SAVED(), nua_saved_event_request()
(nua_tag.h, nua.h)
- Added tport_is_closed() and tport_is_shutdown() to the public API.
- This release is ABI/API compatible with applications linked against
any 1.12.x release. However, applications built against this release won't
work against an older library. The ABI has been tested with the nua module
......
2006-10-19 Kai Vehmanen <kai.vehmanen@nokia.com>
* tport.c (tport_is_shutdown, tport_is_closed): Added to
public API.
2006-01-15 Martti Mela <martti.mela@nokia.com>
* tport.c: integrated initial new STUN support.
......
......@@ -270,6 +270,12 @@ TPORT_DLL int tport_has_tls(tport_t const *tport);
/** Return true if transport is being updated. */
TPORT_DLL int tport_is_updating(tport_t const *self);
/** Test if transport has been closed (added to @VERSION_1_12_4 ) */
TPORT_DLL int tport_is_closed(tport_t const *self);
/** Test if transport has been shut down (added to @VERSION_1_12_4 ) */
TPORT_DLL int tport_is_shutdown(tport_t const *self);
/** Set transport magic. */
TPORT_DLL void tport_set_magic(tport_t *self, tp_magic_t *magic);
......
......@@ -261,13 +261,13 @@ int tport_is_updating(tport_t const *self)
}
/** Test if transport has been closed */
static inline int tport_is_closed(tport_t const *self)
inline int tport_is_closed(tport_t const *self)
{
return self->tp_closed;
}
/** Test if transport has been shut down */
static inline int tport_is_shutdown(tport_t const *self)
inline int tport_is_shutdown(tport_t const *self)
{
return self->tp_closed || self->tp_send_close || self->tp_recv_close;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment