oRTP  0.24.0
include/ortp/ortp.h
Go to the documentation of this file.
00001 /*
00002   The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.
00003   Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org
00004 
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Lesser General Public
00007   License as published by the Free Software Foundation; either
00008   version 2.1 of the License, or (at your option) any later version.
00009 
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Lesser General Public License for more details.
00014 
00015   You should have received a copy of the GNU Lesser General Public
00016   License along with this library; if not, write to the Free Software
00017   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00064 #ifndef ORTP_H
00065 #define ORTP_H
00066 
00067 #include "ortp/logging.h"
00068 #include "ortp/rtpsession.h"
00069 #include "ortp/sessionset.h"
00070 
00071 #ifdef __cplusplus
00072 extern "C"
00073 {
00074 #endif
00075 
00076 ORTP_PUBLIC bool_t ortp_min_version_required(int major, int minor, int micro);
00077 ORTP_PUBLIC void ortp_init(void);
00078 ORTP_PUBLIC void ortp_scheduler_init(void);
00079 ORTP_PUBLIC void ortp_exit(void);
00080 
00081 /****************/
00082 /*statistics api*/
00083 /****************/
00084 
00085 extern rtp_stats_t ortp_global_stats;
00086 
00087 ORTP_PUBLIC void ortp_global_stats_reset(void);
00088 ORTP_PUBLIC rtp_stats_t *ortp_get_global_stats(void);
00089 
00090 ORTP_PUBLIC void ortp_global_stats_display(void);
00091 ORTP_PUBLIC void rtp_stats_display(const rtp_stats_t *stats, const char *header);
00092 ORTP_PUBLIC void rtp_stats_reset(rtp_stats_t *stats);
00093 
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097 
00098 #endif