Lines Matching refs:sip_msg
37 #include "sip_msg.h"
54 _sip_msg_t *sip_msg;
56 sip_msg = calloc(1, sizeof (_sip_msg_t));
57 if (sip_msg != NULL) {
58 sip_msg->sip_msg_ref_cnt = 1;
59 (void) pthread_mutex_init(&sip_msg->sip_msg_mutex, NULL);
61 return ((sip_msg_t)sip_msg);
112 sip_free_msg(sip_msg_t sip_msg)
114 if (sip_msg == NULL)
117 SIP_MSG_REFCNT_DECR((_sip_msg_t *)sip_msg);
124 sip_hold_msg(sip_msg_t sip_msg)
127 if (sip_msg == NULL)
130 SIP_MSG_REFCNT_INCR((_sip_msg_t *)sip_msg);
137 sip_clone_msg(sip_msg_t sip_msg)
146 if (sip_msg == NULL)
151 _sip_msg = (_sip_msg_t *)sip_msg;
221 sip_msg_to_str(sip_msg_t sip_msg, int *error)
226 if (sip_msg == NULL) {
231 msg = (_sip_msg_t *)sip_msg;
462 * Add content (message body) to sip_msg
465 sip_add_content(sip_msg_t sip_msg, char *content)
472 if (sip_msg == NULL || content == NULL || strlen(content) == 0)
475 _sip_msg = (_sip_msg_t *)sip_msg;
519 sip_free_content(_sip_msg_t *sip_msg)
523 if (sip_msg == NULL)
525 content = sip_msg->sip_msg_content;
535 sip_msg->sip_msg_content = NULL;