'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH sip_get_uri_parsed 3SIP "25 Jan 2007" "SunOS 5.11" "Session Initiation Protocol Library Functions" .SH NAME sip_get_uri_parsed \- return the parsed URI .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ] #include \fBconst struct sip_uri *\fR\fIsip_get_uri_parsed\fR(\fBsip_header_value_t\fR \fIvalue\fR, \fBint *\fR\fIerror\fR); .fi .SH DESCRIPTION .sp .LP The \fBsip_get_uri_parsed()\fR function returns the parsed \fBURI\fR \fIsip_uri\fR from the \fBSIP\fR header value specified in \fIvalue\fR. .SH RETURN VALUES .sp .LP The \fBsip_get_uri_parsed()\fR function returns the parsed \fBURI\fR \fIsip_uri\fR on success. The function returns \fBNULL\fR on failure. .sp .LP The value of \fBerrno\fR is not changed by these calls in the event of an error. .SH ERRORS .sp .LP If the error is non-null, following value is set: .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt The \fBSIP\fR header value of the \fBSIP\fR message is \fBNULL\fR or there is no \fBURI\fR. .sp The input \fBURI\fR is null or the requested \fBURI\fR component is invalid. The error flag is set for the requested component. .sp The \fBURI\fR parameters or headers are requested from a non-\fBSIP[S]\fR \fBURI\fR; or the '\fBopaque\fR', '\fBquery\fR', '\fBpath\fR', '\fBreg-name\fR' components are requested from a \fBSIP[S]\fR \fBURI\fR. .RE .sp .LP On success, the value of the location pointed to by \fIerror\fR is set to \fB0\fR. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBlibsip\fR(3LIB)