[asterisk-commits] mmichelson: branch group/pimp_my_sip r378784 - in /team/group/pimp_my_sip: in...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 14:37:21 CST 2013
Author: mmichelson
Date: Wed Jan 9 14:37:17 2013
New Revision: 378784
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378784
Log:
Remove the word "struct" from PJSIP structures that don't need it.
Modified:
team/group/pimp_my_sip/include/asterisk/res_sip.h
team/group/pimp_my_sip/res/res_sip.c
Modified: team/group/pimp_my_sip/include/asterisk/res_sip.h
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/include/asterisk/res_sip.h?view=diff&rev=378784&r1=378783&r2=378784
==============================================================================
--- team/group/pimp_my_sip/include/asterisk/res_sip.h (original)
+++ team/group/pimp_my_sip/include/asterisk/res_sip.h Wed Jan 9 14:37:17 2013
@@ -99,12 +99,12 @@
* \brief Check if a request requires authentication
* See ast_sip_requires_authentication for more details
*/
- int (*requires_authentication)(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata);
+ int (*requires_authentication)(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata);
/*!
* \brief Attempt to authenticate the incoming request
* See ast_sip_authenticate_request for more details
*/
- int (*authenticate_request)(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata);
+ int (*authenticate_request)(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata);
/*!
* \brief Get digest authentication details
* See ast_sip_get_authentication_credentials for more details
@@ -120,7 +120,7 @@
* \brief Callback used to identify the source of a message.
* See ast_sip_identify_endpoint for more details
*/
- struct ast_sip_endpoint *(*identify_endpoint)(struct pjsip_rx_data *rdata);
+ struct ast_sip_endpoint *(*identify_endpoint)(pjsip_rx_data *rdata);
};
/*!
@@ -270,7 +270,7 @@
* \retval non-zero The request requires authentication
* \retval 0 The request does not require authentication
*/
-int ast_sip_requires_authentication(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata);
+int ast_sip_requires_authentication(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata);
/*!
* \brief Authenticate an inbound SIP request
@@ -287,7 +287,7 @@
* \retval 0 Successfully authenticated
* \retval nonzero Failure to authenticate
*/
-int ast_sip_authenticate_request(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata);
+int ast_sip_authenticate_request(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata);
/*!
* \brief Get authentication credentials in order to challenge a request
@@ -329,7 +329,7 @@
* \param rdata The request to potentially authenticate
* \return The result of checking authentication.
*/
-enum ast_sip_check_auth_result ast_sip_check_authentication(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata);
+enum ast_sip_check_auth_result ast_sip_check_authentication(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata);
/*!
* \brief Add digest information to an authentication challenge
@@ -337,7 +337,7 @@
* \param challenge Details to help in constructing a WWW-Authenticate header
* \param tdata The challenge to add the digest to
*/
-void ast_sip_add_digest_to_challenge(struct ast_sip_digest_challenge_data *challenge, struct pjsip_tx_data *tdata);
+void ast_sip_add_digest_to_challenge(struct ast_sip_digest_challenge_data *challenge, pjsip_tx_data *tdata);
/*!
* \brief Determine the endpoint that has sent a SIP message
@@ -351,7 +351,7 @@
* \retval NULL No matching endpoint
* \retval non-NULL The matching endpoint
*/
-struct ast_sip_endpoint *ast_sip_identify_endpoint(struct pjsip_rx_data *rdata);
+struct ast_sip_endpoint *ast_sip_identify_endpoint(pjsip_rx_data *rdata);
/*!
* \brief Add a header to an outbound SIP message
@@ -362,7 +362,7 @@
* \retval 0 Success
* \retval -1 Failure
*/
-int ast_sip_add_header(struct pjsip_tx_data *tdata, const char *name, const char *value);
+int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value);
/*!
* \brief Add a body to an outbound SIP message
@@ -375,7 +375,7 @@
* \retval 0 Success
* \retval -1 Failure
*/
-int ast_sip_add_body(struct pjsip_tx_data *tdata, const char *body);
+int ast_sip_add_body(pjsip_tx_data *tdata, const char *body);
/*!
* \brief Add a multipart body to an outbound SIP message
@@ -388,7 +388,7 @@
* \retval 0 Success
* \retval -1 Failure
*/
-int ast_sip_add_body_mutipart(struct pjsip_tx_data *tdata, const char *bodies[]);
+int ast_sip_add_body_mutipart(pjsip_tx_data *tdata, const char *bodies[]);
/*!
* \brief Append body data to a SIP message
@@ -401,6 +401,6 @@
* \retval 0 Success
* \retval -1 Failure
*/
-int ast_sip_append_body(struct pjsip_tx_data *tdata, const char *body);
+int ast_sip_append_body(pjsip_tx_data *tdata, const char *body);
#endif /* _RES_SIP_H */
Modified: team/group/pimp_my_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip.c?view=diff&rev=378784&r1=378783&r2=378784
==============================================================================
--- team/group/pimp_my_sip/res/res_sip.c (original)
+++ team/group/pimp_my_sip/res/res_sip.c Wed Jan 9 14:37:17 2013
@@ -80,7 +80,7 @@
ast_debug(1, "Unregistered SIP authenticator %p\n", auth);
}
-int ast_sip_requires_authentication(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata)
+int ast_sip_requires_authentication(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata)
{
RAII_VAR(struct ast_sip_authenticator *, reg, ao2_global_obj_ref(registered_authenticator), ao2_cleanup);
if (!reg) {
@@ -91,7 +91,7 @@
return reg->requires_authentication(endpoint, rdata);
}
-int ast_sip_authenticate_request(struct ast_sip_endpoint *endpoint, struct pjsip_rx_data *rdata)
+int ast_sip_authenticate_request(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata)
{
RAII_VAR(struct ast_sip_authenticator *, reg, ao2_global_obj_ref(registered_authenticator), ao2_cleanup);
if (!reg) {
@@ -172,7 +172,7 @@
AST_RWLIST_TRAVERSE_SAFE_END;
}
-struct ast_sip_endpoint *ast_sip_identify_endpoint(struct pjsip_rx_data *rdata)
+struct ast_sip_endpoint *ast_sip_identify_endpoint(pjsip_rx_data *rdata)
{
struct endpoint_identifier_list *iter;
struct ast_sip_endpoint *endpoint = NULL;
@@ -187,25 +187,25 @@
return endpoint;
}
-int ast_sip_add_header(struct pjsip_tx_data *tdata, const char *name, const char *value)
+int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value)
{
/* XXX Stub */
return 0;
}
-int ast_sip_add_body(struct pjsip_tx_data *tdata, const char *body)
-{
- /* XXX stub */
- return 0;
-}
-
-int ast_sip_add_body_mutipart(struct pjsip_tx_data *tdata, const char *bodies[])
-{
- /* XXX stub */
- return 0;
-}
-
-int ast_sip_append_body(struct pjsip_tx_data *tdata, const char *body)
+int ast_sip_add_body(pjsip_tx_data *tdata, const char *body)
+{
+ /* XXX stub */
+ return 0;
+}
+
+int ast_sip_add_body_mutipart(pjsip_tx_data *tdata, const char *bodies[])
+{
+ /* XXX stub */
+ return 0;
+}
+
+int ast_sip_append_body(pjsip_tx_data *tdata, const char *body)
{
/* XXX stub */
return 0;
More information about the asterisk-commits
mailing list