📄 stackmanagement.sgml
字号:
<refentry id="ortp-Stack-management-functions"><refmeta><refentrytitle>Stack management functions</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>ORTP Library</refmiscinfo></refmeta><refnamediv><refname>Stack management functions</refname><refpurpose>Initialization and termination of the library.</refpurpose></refnamediv><refsynopsisdiv><title>Synopsis</title><synopsis>#include <ortp.h>void <link linkend="ortp-init">ortp_init</link> ();void <link linkend="ortp-scheduler-init">ortp_scheduler_init</link> ();void <link linkend="ortp-exit">ortp_exit</link> ();</synopsis></refsynopsisdiv><refsect1><title>Description</title><para>The oRTP library must be initialized using <link linkend="ortp-init">ortp_init</link>() at the beggining of your application.If you want to use the packet scheduler in your application, you must also call<link linkend="ortp-scheduler-init">ortp_scheduler_init</link>().It is cleaner to call <link linkend="ortp-exit">ortp_exit</link>() when the library is no more needed (in most case at theend of your application).</para></refsect1><refsect1><title>Details</title><refsect2><title><anchor id="ortp-init">ortp_init ()</title><programlisting>void ortp_init ();</programlisting><para>Initialize the oRTP library. You should call this function first before usingoRTP API.</para><para></para></refsect2><refsect2><title><anchor id="ortp-scheduler-init">ortp_scheduler_init ()</title><programlisting>void ortp_scheduler_init ();</programlisting><para>Initialize the oRTP scheduler. You only have to do that if you intend to use thescheduled mode of the <link linkend="RtpSession">RtpSession</link> in your application.</para><para></para></refsect2><refsect2><title><anchor id="ortp-exit">ortp_exit ()</title><programlisting>void ortp_exit ();</programlisting><para>Gracefully uninitialize the library, including shutdowning the scheduler if it was started.</para><para></para></refsect2></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -