summaryrefslogtreecommitdiff
path: root/pjnath/include/pjnath/stun_transaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/include/pjnath/stun_transaction.h')
-rw-r--r--pjnath/include/pjnath/stun_transaction.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pjnath/include/pjnath/stun_transaction.h b/pjnath/include/pjnath/stun_transaction.h
index 41344aa0..43740106 100644
--- a/pjnath/include/pjnath/stun_transaction.h
+++ b/pjnath/include/pjnath/stun_transaction.h
@@ -162,6 +162,17 @@ pj_stun_client_tsx_schedule_destroy(pj_stun_client_tsx *tsx,
/**
+ * Destroy the STUN transaction immediately after the transaction is complete.
+ * Application normally calls this function in the on_complete() callback.
+ *
+ * @param tsx The STUN transaction.
+ *
+ * @return PJ_SUCCESS on success, or the appropriate error code.
+ */
+PJ_DECL(pj_status_t) pj_stun_client_tsx_destroy(pj_stun_client_tsx *tsx);
+
+
+/**
* Stop the client transaction.
*
* @param tsx The STUN transaction.