diff options
Diffstat (limited to 'usr/src/man/man3commputil/sdp_add_origin.3commputil')
-rw-r--r-- | usr/src/man/man3commputil/sdp_add_origin.3commputil | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/usr/src/man/man3commputil/sdp_add_origin.3commputil b/usr/src/man/man3commputil/sdp_add_origin.3commputil index 9083c5bb31..1613bb2e22 100644 --- a/usr/src/man/man3commputil/sdp_add_origin.3commputil +++ b/usr/src/man/man3commputil/sdp_add_origin.3commputil @@ -4,14 +4,13 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH SDP_ADD_ORIGIN 3COMMPUTIL "Oct 12, 2007" +.TH SDP_ADD_ORIGIN 3COMMPUTIL "June 18, 2021" .SH NAME sdp_add_origin, sdp_add_name, sdp_add_information, sdp_add_uri, sdp_add_email, sdp_add_phone, sdp_add_connection, sdp_add_bandwidth, sdp_add_repeat, sdp_add_time, sdp_add_zone, sdp_add_key, sdp_add_attribute, sdp_add_media \- add specific SDP fields to the SDP session structure .SH SYNOPSIS -.LP .nf \fBcc\fR [ \fIflag\fR...] \fIfile\fR... -\fBlcommputil\fR [ \fIlibrary\fR...] #include <sdp.h> @@ -97,8 +96,6 @@ add specific SDP fields to the SDP session structure .fi .SH DESCRIPTION -.sp -.LP The caller has to first call \fBsdp_new_session\fR(3COMMPUTIL) and get pointer to a session structure. Then that pointer is used as argument in the following functions and the session structure is constructed. Once the structure is built @@ -156,7 +153,7 @@ as the first argument. .sp .LP The \fBsdp_add_time()\fR function adds the TIME (t=) SDP field to the session -structure using \fIstartime\fR and \fIstoptime\fR. The pointer to the newly +structure using \fIstarttime\fR and \fIstoptime\fR. The pointer to the newly created time structure is returned in \fItime\fR. This pointer is then used in \fBsdp_add_repeat()\fR function. .sp @@ -195,14 +192,10 @@ possibly more than one value, for example, "0 31 32 97". The pointer to the newly created media structure is returned in \fImedia\fR. This pointer is then used to add SDP fields specific to that media section. .SH RETURN VALUES -.sp -.LP These functions return 0 on success and the appropriate error value on failure. The value of \fBerrno\fR is not changed by these calls in the event of an error. .SH ERRORS -.sp -.LP These functions will fail if: .sp .ne 2 @@ -223,7 +216,6 @@ The allocation of memory failed. .RE .SH EXAMPLES -.LP \fBExample 1 \fRBuild an SDP session structure .sp .LP @@ -262,10 +254,10 @@ a=rtpmap:99 h232-199/90000\er\en\e a=rtpmap:90 h263-1998/90000\er\en" */ -#include stdio.h> -#include string.h> -#include errno.h> -#include sdp.h> +#include <stdio.h> +#include <string.h> +#include <errno.h> +#include <sdp.h> int main () { @@ -348,8 +340,6 @@ err_ret: .in -2 .SH ATTRIBUTES -.sp -.LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -366,8 +356,6 @@ MT-Level Safe .TE .SH SEE ALSO -.sp -.LP \fBlibcommputil\fR(3LIB), \fBsdp_new_session\fR(3COMMPUTIL), \fBsdp_parse\fR(3COMMPUTIL), \fBsdp_session_to_str\fR(3COMMPUTIL), \fBattributes\fR(5) |