Commit d34ddc9b authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_tag.h: added define NUTAG_WITH_CURRENT() (because it is mentioned too many times)

Updated documentation (linking to NUTAG_WITH_THIS()).

darcs-hash:20070411134238-65a35-c53c36242d30145f3815f60539fd6c566fa6f9b0.gz
parent cadb3c00
...@@ -135,7 +135,7 @@ void nua_notify_usage_remove(nua_handle_t *nh, ...@@ -135,7 +135,7 @@ void nua_notify_usage_remove(nua_handle_t *nh,
* (or SIPTAG_ALLOW_EVENTS() or SIPTAG_ALLOW_EVENTS_STR()). The application * (or SIPTAG_ALLOW_EVENTS() or SIPTAG_ALLOW_EVENTS_STR()). The application
* can decide whether to accept the SUBSCRIBE request or reject it. The * can decide whether to accept the SUBSCRIBE request or reject it. The
* nua_response() call responding to a SUBSCRIBE request must have * nua_response() call responding to a SUBSCRIBE request must have
* NUTAG_WITH() (or NUTAG_WITH_CURRENT()/NUTAG_WITH_SAVED()) tag. * NUTAG_WITH() (or NUTAG_WITH_THIS()/NUTAG_WITH_SAVED()) tag.
* *
* If the application accepts the SUBSCRIBE request, it must immediately * If the application accepts the SUBSCRIBE request, it must immediately
* send an initial NOTIFY establishing the dialog. This is because the * send an initial NOTIFY establishing the dialog. This is because the
......
...@@ -443,7 +443,7 @@ static int nua_publish_usage_shutdown(nua_handle_t *nh, ...@@ -443,7 +443,7 @@ static int nua_publish_usage_shutdown(nua_handle_t *nh,
* events with nua_set_params() tag NUTAG_ALLOW_EVENTS(). * events with nua_set_params() tag NUTAG_ALLOW_EVENTS().
* *
* The nua_response() call responding to a PUBLISH request must have * The nua_response() call responding to a PUBLISH request must have
* NUTAG_WITH() (or NUTAG_WITH_CURRENT()/NUTAG_WITH_SAVED()) tag. Note that * NUTAG_WITH() (or NUTAG_WITH_THIS()/NUTAG_WITH_SAVED()) tag. Note that
* a successful response to PUBLISH @b MUST include @Expires and @SIPETag * a successful response to PUBLISH @b MUST include @Expires and @SIPETag
* headers. * headers.
* *
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
* the REGISTER method with NUTAG_ALLOW() tag. * the REGISTER method with NUTAG_ALLOW() tag.
* *
* The nua_response() call responding to a REGISTER request must have * The nua_response() call responding to a REGISTER request must have
* NUTAG_WITH() (or NUTAG_WITH_CURRENT()/NUTAG_WITH_SAVED()) tag. Note that * NUTAG_WITH() (or NUTAG_WITH_THIS()/NUTAG_WITH_SAVED()) tag. Note that
* a successful response to REGISTER @b MUST include the @Contact header * a successful response to REGISTER @b MUST include the @Contact header
* bound to the the AoR URI (in @To header). * bound to the the AoR URI (in @To header).
* *
......
...@@ -1278,7 +1278,7 @@ void nua_server_request_destroy(nua_server_request_t *sr) ...@@ -1278,7 +1278,7 @@ void nua_server_request_destroy(nua_server_request_t *sr)
* content negotiation fails. * content negotiation fails.
* *
* When responding to an incoming INVITE request, the nua_respond() can be * When responding to an incoming INVITE request, the nua_respond() can be
* called without NUTAG_WITH() (or NUTAG_WITH_CURRENT() or * called without NUTAG_WITH() (or NUTAG_WITH_THIS() or
* NUTAG_WITH_SAVED()). Otherwise, NUTAG_WITH() will contain an indication * NUTAG_WITH_SAVED()). Otherwise, NUTAG_WITH() will contain an indication
* of the request being responded. * of the request being responded.
* *
...@@ -1307,7 +1307,7 @@ void nua_server_request_destroy(nua_server_request_t *sr) ...@@ -1307,7 +1307,7 @@ void nua_server_request_destroy(nua_server_request_t *sr)
* nothing * nothing
* *
* @par Related Tags: * @par Related Tags:
* NUTAG_WITH(), NUTAG_WITH_CURRENT(), NUTAG_WITH_SAVED() \n * NUTAG_WITH(), NUTAG_WITH_THIS(), NUTAG_WITH_SAVED() \n
* NUTAG_EARLY_ANSWER() \n * NUTAG_EARLY_ANSWER() \n
* SOATAG_ADDRESS() \n * SOATAG_ADDRESS() \n
* SOATAG_AF() \n * SOATAG_AF() \n
......
...@@ -157,6 +157,9 @@ SOFIAPUBVAR tag_typedef_t nutag_with; ...@@ -157,6 +157,9 @@ SOFIAPUBVAR tag_typedef_t nutag_with;
*/ */
#define NUTAG_WITH_THIS(nua) nutag_with, tag_ptr_v(nua_current_request((nua))) #define NUTAG_WITH_THIS(nua) nutag_with, tag_ptr_v(nua_current_request((nua)))
#define NUTAG_WITH_CURRENT(nua) \
nutag_with, tag_ptr_v(nua_current_request((nua)))
/**Specify request to respond to. /**Specify request to respond to.
* *
* @par Used with * @par Used with
......
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