]> git.sesse.net Git - vlc/blob - modules/access/rtsp/real.h
Update LGPL license blurb, choosing v2.1+.
[vlc] / modules / access / rtsp / real.h
1 /*****************************************************************************
2  * real.c: rtsp input
3  *****************************************************************************
4  * Copyright (C) 2002-2004 the xine project
5  * Copyright (C) 2005 VideoLAN
6  * $Id$
7  *
8  * Authors: Gildas Bazin <gbazin@videolan.org>
9  *          Adapted from xine which itself adapted it from joschkas real tools.
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25 #ifndef HAVE_REAL_H
26 #define HAVE_REAL_H
27
28 #ifdef HAVE_CONFIG_H 
29 # include "config.h" 
30 #endif
31
32 #include <stdlib.h>
33 #include <string.h>
34 #include <inttypes.h>
35
36 #include <vlc_common.h>
37 #include "rtsp.h"
38 #include "real_rmff.h"
39 #include "real_sdpplin.h"
40
41 #ifdef REALDEBUG
42 #   define lprintf printf
43 #else
44     static inline void lprintf( const char *dummy, ... ) { (void)dummy; }
45 #endif
46
47 int real_get_rdt_chunk_header(rtsp_client_t *, rmff_pheader_t *);
48 int real_get_rdt_chunk(rtsp_client_t *, rmff_pheader_t *, unsigned char **);
49 rmff_header_t *real_setup_and_get_header(rtsp_client_t *, int bandwidth);
50
51 int asmrp_match(const char *rules, int bandwidth, int *matches, int matchsize) ;
52
53 #endif